In laravel 4, I would like to have a nested controller.
I read the documentation but did not find any explanation on how to do this.
Suppose I have several articles in the application, and each article has its own set of comments. I would like to be able to get comments on a specific article by referring to a URL like this.
http://myapp.com/articles/5/comments
I created a commentController, but I donβt know how to get the article id from the URL correctly, so I can pass it to all my CRUD methods in my controller
source share