@gman01 What's the package you speak of?
I'm going to assume your using the popular package Zizaco/entrust
Since @role uses this function here this should work for you..
@role(['admin', 'advisor])
Some content
@endrole
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hi,
Don't suppose anyone has an idea if its possible to check for multiple roles using this package?
@role('admin')
I am an Admin/advisor User
@else
@endrole
Tried below but it throws an error.
@role('admin|advisor', 'all') // @if(Auth::check() && Auth::user()->is('admin|moderator', 'all'))
// user is admin and also moderator
@else
// something else
@endrole
Please or to participate in this conversation.