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 think I've made clear what the issue was. No question on a community support forum will solve my problem.
Right now the issue is in Pail (or Laravel itself). The issue occurs because I trigger logging while loading the authenticated user which, in turn, tries loading the authenticated user which triggers logging... and so on.
The call stack is something like this (assuming SessionGuard is used):
call Auth::id()
call SessionGuard::user()
call UserProvider::retrieveById() to get the user from database
UserProvider triggers logging
Pail logging handler calls Auth::id() to get the username
Goto 1
If you answer me that I shouldn't log in UserProvider I'll accept that answer, even though I don't agree with it, but right now I feel there is an issue. Maybe the issue is in Laravel's auth stack itself...
Will gladly provide any additional info if needed.
I think I've made clear what the issue was. No question on a community support forum will solve my problem.
Right now the issue is in Pail (or Laravel itself). The issue occurs because I trigger logging while loading the authenticated user which, in turn, tries loading the authenticated user which triggers logging... and so on.
The call stack is something like this (assuming
SessionGuard
is used):Auth::id()
SessionGuard::user()
UserProvider::retrieveById()
to get the user from databaseUserProvider
triggers loggingAuth::id()
to get the usernameIf you answer me that I shouldn't log in
UserProvider
I'll accept that answer, even though I don't agree with it, but right now I feel there is an issue. Maybe the issue is in Laravel's auth stack itself...Will gladly provide any additional info if needed.
Thanks again.
Originally posted by @gjm in #39 (comment)
The text was updated successfully, but these errors were encountered: