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