jeudi 21 juin 2018

Namespaced controllers and routes in laravel

Assume, I have a model "Post" and I create two resource controllers for it - User/PostController and Admin/PostController.

So when I wish to consume the resource, my routes would look something like this:

/user/post/:id
/admin/post/:id

Is this correct according to the convention or am I doing it wrong?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire