artisan route:list for Lumen projects
-
composer require mlntn/lumen-artisan-route-list "~1"
-
Add the following line to the $commands array in app/Console/Kernel.php:
\Mlntn\Console\Commands\RouteList::class,
-
artisan route:list
I didn't write most of this code. It comes straight from laravel/framework by @taylorotwell. I did have to tweak a bunch of things to get it going for Lumen. Enjoy!