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?



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2tqrZ0r
via IFTTT

Aucun commentaire:

Enregistrer un commentaire