How to get the type of the user in laravel? – Phpmyadmin
I want the code to check if the current user category is admin or superadmin, it will show the edit panel @if (Auth::user()->category=='admin'||Auth::user()->category=='superadmin') <td class="center"> <a href="{{ route('Order.edit', ['id'=>$order->id ]) }}" class="btn btn-warning btn-sm custom"> <i class="glyphicon glyphicon-edit"></i> EDIT</a> </td>…