public function authRequest($guard = null)
    {
        return is_null($guard) ? request()->user() ?? request()->user('api') : request()->user($guard);
    }
public function authRequest($guard = null)
    {
        return is_null($guard) ? request()->user() ?? request()->user('api') : request()->user($guard);
    }
public function authRequest ( $ guard = null ) { return is_null ( $ guard ) ? request ( ) -> user ( ) ?? request ( ) -> user ( 'api' ) : request ( ) -> user ( $ guard ) ; }
Get auth request by guard
@param   string  $guard  Web / Api
@return Illuminate\Database\Eloquent\Model
Get auth request by guard