public function getAuthUser()
    {
        $user = null;
        if ($this->api_auth()->check()) {
            $user = $this->api_auth()->user();
        } else if (\Auth::check()) {
            $user = \Auth::user();
        }
        return $user;
    }
public function getAuthUser()
    {
        $user = null;
        if ($this->api_auth()->check()) {
            $user = $this->api_auth()->user();
        } else if (\Auth::check()) {
            $user = \Auth::user();
        }
        return $user;
    }
public function getAuthUser ( ) { $ user = null ; if ( $ this -> api_auth ( ) -> check ( ) ) { $ user = $ this -> api_auth ( ) -> user ( ) ; } else if ( \ Auth :: check ( ) ) { $ user = \ Auth :: user ( ) ; } return $ user ; }
Get current auth user

@return User|null
Get current auth user