Skip to content

Commit

Permalink
make vue-bootstrap file to build vue ,vuetify and echo, make app.js o…
Browse files Browse the repository at this point in the history
…nly build the data, channels and listener for vue instance
  • Loading branch information
g0ld3lux committed Jul 28, 2017
1 parent 2bdc402 commit 8c3a664
Show file tree
Hide file tree
Showing 24 changed files with 312 additions and 97,337 deletions.
9 changes: 9 additions & 0 deletions app/Providers/AppServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

use Illuminate\Support\ServiceProvider;
use App\Observers\UserObserver;
use Illuminate\Support\Facades\Blade;
use App\User;

class AppServiceProvider extends ServiceProvider
Expand All @@ -16,6 +17,7 @@ class AppServiceProvider extends ServiceProvider
public function boot()
{
User::observe(UserObserver::class);
$this->isSignedIn();
}

/**
Expand All @@ -27,4 +29,11 @@ public function register()
{
//
}

private function isSignedIn()
{
Blade::if('auth', function () {
return auth()->check();
});
}
}
Loading

0 comments on commit 8c3a664

Please sign in to comment.