vendredi 26 février 2016

Same URL for multiple routes

How can same URL be pointing to different controllers depending on the user role ?

For instance /route1 should be poiting on Admin\route1Controller@index if the user has the admin role, and OtherRole\route1Controller@index if the user has the OtherRole role.

How can this be done ?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire