I did not find how to use a clause (OR, AND) in view with @can, for checking multiple abilities ...
I tried:
@can([\'permission1\', \'permission2\'])
@c
If you are using laravel spatie package
, then you can do it easily by following way..
Using hasAnyPermission() method
@if(auth()->user()->hasAnyPermission(['permission1','permission2']))
// statements
@endif
You can call @can
multiple times.
@if( @can('permission1') || @can('permission2') )
@if( Gate::check('permission1') || Gate::check('permission2') )