Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
July 30, 2022 04:21 pm GMT

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:    Share on Facebook
View Full Article

Dev To

An online community for sharing and discovering great ideas, having debates, and making friends

More About this Source Visit Dev To