How to check the user administrator or not, if the admin has to show.
Suppose you have an is_admin field in the users table. Then the view will be like this:
is_admin
users
@if(Auth::user()->is_admin) пользователь администратор @else обычный пользователь @endif
Source: https://ru.stackoverflow.com/questions/589436/More articles:AsyncTask waiting for a thread to complete.SMS gateway Kannel. Throttling errorHow can I find out that a push notification is received in iOS (Objective-C)?Html How to make out class = “” id = “” [closed]JS selection of content block by external linkHow to write onClicklistener for the Android Box remote?Change the picture when you clickSubordinate query does not workCreating a binary code in Python 3.5 using hexHow to display the value in this case?All Articles