public function getName() { if (Auth::check()) { return Auth::user()->name; } else { return ''; } }
function getNavTop() { if (Auth::check()) { return ['view' => 'nav_top_logged.php', 'name' => Auth::user()->name]; } return ['view' => 'nav_top_not_login.php']; }