-
Notifications
You must be signed in to change notification settings - Fork 136
New issue
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
Possible to use User object functions? #114
Comments
Perhaps a better way to phrase my question is, how can I continue to use the eloquent user driver (providing access to various App\User.php functionality) while still performing login/logout using Auth0? I don't see anything related to this in the quickstart docs. |
@glaesser - Thanks for the report here! I'll take a look at this as soon as I can next week. |
Just an update here that I've essentially solved this drawback by replacing all my app calls of Auth::user() with a custom function User::current() whenever I want to interact with the currently logged in user eloquent object:
There are a few very minor drawbacks as inside blade templates you now have to reference App\User::current() instead of just Auth::user(), but for the most part it's completely solved the issue. Feel free to close this. |
Thanks for the update here, @glaesser. I'll make a note to see how this works now and if we can improve what we're doing here. We definitely don't want to clobber any existing functionality. |
is there any way to use user role and permission on auth0 like Auth::user() @can |
I'm having this issue. This is serious issue tho for me |
+1 issue still there |
Before integrating Auth0 into my app, I was able to call
someFunction() was defined as a public function in my App\User.php. After integrating Auth0, I am no longer able to call these functions:
My question is, what is the best way to still utilize these user model functions? I am using customUserRepository.php as outlined in the laravel quickstart guide.
The text was updated successfully, but these errors were encountered: