Search for threads and articles
Quickly access threads and articles by running a global search.
No results found
We couldn’t find anything with that term. Please try again.
Easiest way: Auth::user() && Auth::user()->hasPermission(x).
Auth::user() && Auth::user()->hasPermission(x)
Longer way to make it work with only "Auth::user() - you can overload the Auth class to return a GuestUser if there is no current user to act as the NullObject pattern.
Sign in to participate in this thread!
Your banner here too?
We'd like to thank these
for supporting us
Your logo here?
The Laravel portal for problem solving, knowledge sharing and community building.