How to check the user administrator or not, if the admin has to show.

    1 answer 1

    Suppose you have an is_admin field in the users table. Then the view will be like this:

     @if(Auth::user()->is_admin) пользователь администратор @else обычный пользователь @endif