mercredi 21 mars 2018

Laravel 5.5 Multi Auth Policies

i am developping app which requires 2 types of users: managers and clients. Each client have his own files. How can i setup auth guards and policies so that client can update his own files and manager can update anyone's files. My goal is to have FileController which is protected by ManagerGuard or ClientGuard and in update methond can call $this->authorize('update', $file);

Thanks for any advices, have a nice day



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

Aucun commentaire:

Enregistrer un commentaire