Blade directive @can('users.index') doesn't works #1740
Unanswered
miguel-cortez-weedmaps
asked this question in
Q&A
Replies: 1 comment 2 replies
-
The |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello I have a question with blade directive @can('permission')
I have a user that has a role admin, this roles has permissions like 'users.index', so when I trying to use
@can('users.index')
< li>< a class="active" href="/admin/users">Users< /a>< /li>
@endcan
The link is not showing, but when I use @ role('admin'), so by role it works.
I'm using Laravel 8 and I cleared cache with
php artisan config:clear
php artisan permission:cache-reset.
I hope you can help me please.
Beta Was this translation helpful? Give feedback.
All reactions