samedi 13 octobre 2018

Can I check 2 role in blade?

I am using zizaco entrust and I want to show some specific menu for 2 users. But If I set like blew code it's not working. Can anyone have any suggestion, How can I set a menu for 2 different roles?

@role('admin','host')
    <p>This is visible to users with the admin role. Gets translated to 
    \Entrust::role('admin')</p>
@endrole



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire