Hi,
Is there a way for @can like @hasanyrole(['callcenter', 'admin']) ?
I want to check if a user has 1 or more permissions like:
@can(['list companies', 'list users'])
Is there a workaround for this?
Raymond
@if(Auth::user()->hasAnyPermission(['list companies', 'list users'])
Thanks for answering this one @drbyte
Most helpful comment
@if(Auth::user()->hasAnyPermission(['list companies', 'list users'])