php - Same URL for multiple routes -
how can same url pointing different controllers depending on user role ?
for instance /route1
should poiting on admin\route1controller@index
if user has admin role, , otherrole\route1controller@index
if user has otherrole
role.
how can done ?
you can achieve using middleware in routes.php file creating roles using roman bican roles package in laravel.
Comments
Post a Comment