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 just wanted to point out to anyone having issues with the Filtering the items section for checking is a user can see the menu item based on their permissions, that you may need to use if (\Auth::user()->can(... instead of if (User::get()->can(... for this to work. As the documentation is currently written, you may receive an error (I did).
The text was updated successfully, but these errors were encountered:
I just wanted to point out to anyone having issues with the Filtering the items section for checking is a user can see the menu item based on their permissions, that you may need to use
if (\Auth::user()->can(...
instead ofif (User::get()->can(...
for this to work. As the documentation is currently written, you may receive an error (I did).The text was updated successfully, but these errors were encountered: