# boot method public function boot() { # Share to all view view()->composer('*', function($view) { # Check Auth Here if (Auth::check()) { // } }); }