I'm currently working with laravel 5.6 with spatie. I've already implemented permissions in the view like @can('Page View') and its working well.
My intention is to use multiple clause like if any of the two conditions matched in the @can, then the menu item will visible. Like @hasanyrole('Admin|Super Admin'), can I add @can ('cond1' | 'cond2') ?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire