in Larave 5.1 is there a way to know through what controller the method got called in a nested rout. for example if i have the following routs:
Rout::resource('post.comment','CommentController')
Rout::resource('user.comment','CommentController')
how to know if the index method in commentController called by post/{post}/comment or user/{user}/comment, do i need to use the URL or there is a better way to do that
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/1QCPKFJ
via IFTTT
Aucun commentaire:
Enregistrer un commentaire