diff --git a/src/PassportServiceProvider.php b/src/PassportServiceProvider.php index 1d6e7ec7c..daeb04422 100644 --- a/src/PassportServiceProvider.php +++ b/src/PassportServiceProvider.php @@ -284,7 +284,7 @@ protected function registerGuard() Auth::resolved(function ($auth) { $auth->extend('passport', function ($app, $name, array $config) { return tap($this->makeGuard($config), function ($guard) { - $this->app->refresh('request', $guard, 'setRequest'); + app()->refresh('request', $guard, 'setRequest'); }); }); });