View::composer('*', function($view) { $view->with('name', Auth::check() ? Auth::user()->firstname : ''); });