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



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire