vendredi 9 décembre 2016

unique route request needs multiple controller laravel


I am working on one laravel project. I am new to laravel. I have few roles(editor,user,admin) in the system. We don't need multi auth system. I don't need multi auth for different roles and create prefix based routes accordingly.
e.g

http://ift.tt/2h5ddb3, http://ift.tt/2htsf7q 

Let's say if all above mentioned roles request for

http://ift.tt/2h5ikrx

then I want to call individual controller based on role, so I can handle request properly and my code remain clean. I don't want to do all the things in single controller.

When user/role updates profile, different roles have different input fields so it's better to distribute request to individual controller.

Currently, I am using below package for roles and permission which is nice still. http://ift.tt/1OigRca

Environments:

Laravel Version: 5.3
DATABASE: Mysql
Server: Apache

Please help me on this.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire