i have planning to update our current project to the latest version of laravel, and the first step is to bring it up from 9 to 10, so i’m trying to bring the auth0 version up to the version supported by Laravel 10 in order to bring it up to 10.
The version i was using so far was “auth0/login”: “7.0.1”, but I have raised it to “auth0/login”: “7.5.2”.
Now I have a problem.
I used to be able to get user details in the dynamic routing page using auth()->user(), but when I upgraded the auth0 version, it started returning null.
I have tried various method, but nothing works. I would like to know if there is anyone who is knowledgeable and can tell me what the problem is. ![]()
Welcome to the Auth0 Community!
Have you taken a look at this Laravel quickstart: Auth0 Laravel SDK Quickstarts: Add Login to a Laravel Application? There’s a User Information section.
Additionally, could you provide a code snippet of how you are initializing Auth0 in the application?
Thanks,
Mary Beth