From 3d1e6bbdedf71efb147f3b5205259e8b20c2e6ad Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Mon, 5 Apr 2021 13:44:12 -0500 Subject: [PATCH] use app helper --- src/PassportServiceProvider.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'); }); }); });