Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Laravel 5.2 php artisan routes not working

In Laravel 5.2, trying to display the routes list using php artisan routes. But, its not working. It will show the below errors,

[Symfony\Component\Console\Exception\CommandNotFoundException]
Command "routes" is not defined.

How to fix this issue??

Thanks

like image 751
Mansoor H Avatar asked Mar 18 '16 06:03

Mansoor H


1 Answers

It is php artisan route:list since Laravel 5.1

UPDATE

It seems you're using Lumen, not Laravel. Unfortunately there are not many commands in Lumen, so if you really need to use them, you can create them or just use Laravel framework instead of Lumen.

Or you can use package like:

https://github.com/sohelamin/lumen-route-list

like image 148
Alexey Mezenin Avatar answered Oct 02 '22 22:10

Alexey Mezenin