Hi all,
I am new to laravel, i wanted to fetch list of all controllers in my app, and then fetch list of all actioned defined in that controller.
I used cakephp and it was quite easy there to fetch list of controllers. I am not sure if there is any function or do i need to write a peice of code for this.
Thanks, DJ
Hello,
You can use php artisan routes command to list all routes and its corresponding controller@method. If you are planning to work on it programmatically, check this file the handles routes command:
https://github.com/laravel/framework/blob/5.0/src/Illuminate/Foundation/Console/RouteListCommand.php
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community