Skip to content

Commit 8c3a664

Browse files
committed
make vue-bootstrap file to build vue ,vuetify and echo, make app.js only build the data, channels and listener for vue instance
1 parent 2bdc402 commit 8c3a664

24 files changed

+312
-97337
lines changed

app/Providers/AppServiceProvider.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
use Illuminate\Support\ServiceProvider;
66
use App\Observers\UserObserver;
7+
use Illuminate\Support\Facades\Blade;
78
use App\User;
89

910
class AppServiceProvider extends ServiceProvider
@@ -16,6 +17,7 @@ class AppServiceProvider extends ServiceProvider
1617
public function boot()
1718
{
1819
User::observe(UserObserver::class);
20+
$this->isSignedIn();
1921
}
2022

2123
/**
@@ -27,4 +29,11 @@ public function register()
2729
{
2830
//
2931
}
32+
33+
private function isSignedIn()
34+
{
35+
Blade::if('auth', function () {
36+
return auth()->check();
37+
});
38+
}
3039
}

0 commit comments

Comments
 (0)