@canany was added in 5.6.23 according to https://github.com/laravel/framework/blob/5.6/CHANGELOG-5.6.md
Jun 17, 2018
4
Level 1
@canany or @canevery ? [Laravel 5.6]
There is @can Blade directive, but it accepts only one string (one ability).
But what about checking multiple permissions at once? Is there something like:
@canany(['create_posts', 'edit_posts', 'delete_posts']) - checks if any one of specified abilities passes
or
@canevery(['create_posts', 'edit_posts', 'delete_posts']) - checks if every ability passes
?
I'm using Laravel 5.6
Level 3
1 like
Please or to participate in this conversation.