I need to filter my navbar upon a column in my users table which is user_type. user type column has student, Coordinator and admin. I am able to restrict the buttons of my navbar to only authenticated users using
@if(!Auth::guest())
<li><a href="/myprojects">My projects</a></li>
@endif
but I am trying to show some buttons only from the Coordinator, how I am able to do that ?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire