public function user()
    {
        if (!$user = Auth::getUser()) {
            return null;
        }

        if (!Auth::isImpersonator()) {
            $user->touchLastSeen();
        }

        return $user;
    }
public function user()
    {
        if (!$user = Auth::getUser()) {
            return null;
        }

        if (!Auth::isImpersonator()) {
            $user->touchLastSeen();
        }

        return $user;
    }
public function user ( ) { if ( ! $ user = Auth :: getUser ( ) ) { return null ; } if ( ! Auth :: isImpersonator ( ) ) { $ user -> touchLastSeen ( ) ; } return $ user ; }
Returns the logged in user, if available, and touches
the last seen timestamp.
@return RainLab\User\Models\User
Returns the logged in user if available and touches the last seen timestamp .