jeudi 1 septembre 2016

Laravel 5 Select all records if a user is admin

How I get all records if a user is admin, if not is admin return only the user posts. I already try

Where('id',"=",$enum)->orWhere('Administrador','=','Administrador')->get();

Thanks in advance



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2bGgE7A
via IFTTT

Aucun commentaire:

Enregistrer un commentaire