An Interest In:
Web News this Week
- April 18, 2024
- April 17, 2024
- April 16, 2024
- April 15, 2024
- April 14, 2024
- April 13, 2024
- April 12, 2024
July 30, 2022 04:21 pm GMT
Original Link: https://dev.to/sandrocagara/laravel-9-check-multiple-permissions-at-once-53g8
Laravel 9 - Check Multiple Permissions at Once
In addition to @can
Blade directive, did you know you can check multiple permissions at once with @canany
directive?
@canany(['update', 'view', 'delete'], $post) // This user can update, view, or delete@elsecanany(['create'], \App\Example::class) // This user can create@endcanany
Original Link: https://dev.to/sandrocagara/laravel-9-check-multiple-permissions-at-once-53g8
Share this article:
Tweet
View Full Article
Dev To
An online community for sharing and discovering great ideas, having debates, and making friendsMore About this Source Visit Dev To