You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to upgrade lumen version from ^6.0 to ^10.0. (PHP 8.3)
First error i have encounter is Call to undefined method Laravel\Lumen\Routing\Router::middleware() So i have changed AuthServiceProvider and added Passport::$registersRoutes = false; It is working and error has gone.
Now when i tried to get access token then below error found. Server error: POST /oauth/tokenresulted in a500 Internal Server Error response:\n{\n \"message\": \"Undefined property: Dusterio\\\\LumenPassport\\\\Http\\\\Controllers\\\\AccessTokenController::$jwt\"
When i have debug AccessTokenController then found $token = $this->jwt->parse($payload['access_token']); Line where jwt property undefined and not able to find parse() method.
Laravel passport AccessTokenController controller does not have $jwt property.
I think this may be deprecated. What is the solution for that?
The text was updated successfully, but these errors were encountered:
I want to upgrade lumen version from ^6.0 to ^10.0. (PHP 8.3)
First error i have encounter is
Call to undefined method Laravel\Lumen\Routing\Router::middleware()
So i have changed AuthServiceProvider and addedPassport::$registersRoutes = false;
It is working and error has gone.Now when i tried to get access token then below error found.
Server error:
POST /oauth/tokenresulted in a
500 Internal Server Errorresponse:\n{\n \"message\": \"Undefined property: Dusterio\\\\LumenPassport\\\\Http\\\\Controllers\\\\AccessTokenController::$jwt\"
When i have debug AccessTokenController then found
$token = $this->jwt->parse($payload['access_token']);
Line where jwt property undefined and not able to find parse() method.Laravel passport AccessTokenController controller does not have $jwt property.
I think this may be deprecated. What is the solution for that?
The text was updated successfully, but these errors were encountered: