I have the user guard (which name is web) and I have the admin guard (which name is admin). So, to show/hide stuff I use the Laravel blade directives @auth('web') or @auth('admin') but somehow the @guest doesn't work so I'm forced to use like this:
@auth('admin')
<li>Dashboard</li>
<li>Log out</li>
@endauth
@auth('web')
<li>Create Post</li>
<li>Log out</li>
@endauth
@guest('admin')
@guest('web')
<li>Contact</li>
<li>About us</li>
@endguest
@endguest
I nest the guest directives but it feels like too much, any better way of doing it?