Laravel getting local user

Hi,

I am using the guide located here: Auth0 Laravel SDK Quickstarts: Login

I am using the Custom User Handling section which working however when I do auth()->user()
, it just returns the UserInfo().

What is the best way to get the User Model instead ?
I need to access relations and casting

Thanks

Craig

Hi @craig.potter … this came up in another Community thread here and I think it’s worth it to take a closer look to how we’re working with the User in this module. The original idea behind our User and UserProvider was to rely entirely on Auth0 to determine authentication status. I think we can probably work more better with the Eloquent model, though it might require a major release to do so.

We’re open to suggestions on how to do that better!