app/Auth/Auth.php
//grab the currently signed in user
grab the currently signed in user
grab the currently signed in user
public function user()
  {
    if (isset($_SESSION['user'])) {
      $user = Usermeta::leftJoin('users', 'usermeta.id', '=', 'users.id');
      return Usermeta::find($_SESSION['user']);
    }
    return false;
  }
public function user ( ) { if ( isset ( $ _SESSION [ 'user' ] ) ) { $ user = Usermeta :: leftJoin ( 'users' , 'usermeta.id' , '=' , 'users.id' ) ; return Usermeta :: find ( $ _SESSION [ 'user' ] ) ; } return false ; }
grab the currently signed in user
grab the currently signed in user