user()?->currentAccessToken(); throw_unless($token instanceof TransientToken, AccessDeniedHttpException::class, 'This action can only be performed from an authenticated panel session, not with an API key.'); return $next($request); } }