Replies: 3 comments 4 replies
-
You forgot adding |
Beta Was this translation helpful? Give feedback.
0 replies
-
You probably need to inspect what roles your User has at that point. $user = Auth::user();
dd($user, $user->roles); |
Beta Was this translation helpful? Give feedback.
0 replies
-
This seems to work with me, after all research and work I tried with this function then boom it worked out (auth()->check() && auth()->$user->hasRole('production')) |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In my source codes i ahve tried all the possible documentation to check where the error is comming from but still facing the issue after all? here are my source codes
Beta Was this translation helpful? Give feedback.
All reactions