mardi 29 janvier 2019

Conflict when make dynamic routing in Laravel

im new in Laravel. I want to make routing in Laravel.

  • domain/{member_name} -> to MemberController
  • domain/{admin_name} -> to AdminController

But when I access domain/example-admin-name, it only go to MemberController.

I know I can make domain/member/{member_name} and domain/admin/{admin_name}.

But I want it to be simple and only have one segment uri



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire