Skip to content

Commit 89a4f74

Browse files
committed
wip
1 parent a207d33 commit 89a4f74

File tree

2 files changed

+2
-23
lines changed

2 files changed

+2
-23
lines changed

resources/views/layouts/master.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<meta name="viewport" content="width=device-width, initial-scale=1.0">
66
<script src="https://cdn.tailwindcss.com"></script>
77

8-
<title>{{ $title }} - @yield('title')</title>
8+
<title>@yield('title') - Laravel User Monitoring</title>
99

1010
@yield('style')
1111
<style>
@@ -19,7 +19,7 @@
1919
<div class="px-4 md:px-10 py-4 md:py-7">
2020
<div class="flex items-center justify-between">
2121
<p class="focus:outline-none text-base sm:text-lg md:text-xl lg:text-2xl font-bold leading-normal text-gray-800" tabindex="0">
22-
{{ $title }} 📈
22+
Laravel User Monitoring 📈
2323
</p>
2424
</div>
2525
</div>

src/Providers/LaravelUserMonitoringServiceProvider.php

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,6 @@ public function boot()
3939
$this->publishViews();
4040
$this->publishMiddleware();
4141
$this->publishRoute();
42-
43-
$this->viewComposer();
4442
}
4543

4644
/**
@@ -102,23 +100,4 @@ private function publishRoute()
102100
__DIR__ . '/../../routes/web.php' => base_path('routes/user-monitoring.php'),
103101
], 'laravel-user-monitoring-routes');
104102
}
105-
106-
/**
107-
* View Composer.
108-
*
109-
* @return void
110-
*/
111-
private function viewComposer()
112-
{
113-
view()->composer([
114-
'LaravelUserMonitoring::layouts.master',
115-
'LaravelUserMonitoring::visit-monitoring.index',
116-
'LaravelUserMonitoring::actions-monitoring.index',
117-
'LaravelUserMonitoring::authentications-monitoring.index',
118-
], function (View $view) {
119-
$title = 'Laravel User Monitoring';
120-
121-
$view->with('title', $title);
122-
});
123-
}
124103
}

0 commit comments

Comments
 (0)