We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I receiving from phpstan Call to an undefined static method Illuminate\Support\Facades\Auth::refresh()
Call to an undefined static method Illuminate\Support\Facades\Auth::refresh()
The text was updated successfully, but these errors were encountered:
The default Auth facade does not support the refresh() method, it is specific to JWTGuard. You can use a workaround like
Auth
refresh()
JWTGuard
$guard = Auth('api'); if (! $guard instanceof JWTGuard) { // handle wrong guard, i.e. throw runtime exception } return response()->json([ 'token_type' => 'Bearer', 'access_token' => $guard->refresh(), ]);
Sorry, something went wrong.
No branches or pull requests
Subject of the issue
I receiving from phpstan
Call to an undefined static method Illuminate\Support\Facades\Auth::refresh()
Your environment
The text was updated successfully, but these errors were encountered: