share('signedIn', Auth::check()); $user = Auth::user(); if(!$user) { $user = User::getDefault(); } view()->share('user', $user); } }