Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

check multiple roles with Blade directive @can?

//  composer require spatie/laravel-permission
@hasanyrole('admin|manager')
    I am either a manager or an admin or both!
@else
    I have none of these roles...
@endhasanyrole
 
PREVIOUS NEXT
Tagged: #check #multiple #roles #Blade #directive
ADD COMMENT
Topic
Name
9+1 =