public static function user()
    {
        if (Session::has('user')) {
            $userModel = Config::get('user');
            $model = new $userModel();

            return $model->find(Session::get('user'));
        }
        return false;
    }
public static function user()
    {
        if (Session::has('user')) {
            $userModel = Config::get('user');
            $model = new $userModel();

            return $model->find(Session::get('user'));
        }
        return false;
    }
public static function user ( ) { if ( Session :: has ( 'user' ) ) { $ userModel = Config :: get ( 'user' ) ; $ model = new $ userModel ( ) ; return $ model -> find ( Session :: get ( 'user' ) ) ; } return false ; }
Returns the logged in user's data as an object.

@return bool|object
Returns the logged in user s data as an object .