Laravel 5.2 php artisan routes do not work

In Laravel 5.2, trying to display a list of routes using php artisan routes . But it doesn’t work. It will show errors below

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

How to fix this problem?

thanks

+5
source share
2 answers

This is php artisan route:list since Laravel 5.1

UPDATE

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

Or you can use a package, for example:

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

+7
source

Delete the folder named bootstrap and install the previous backup of this folder. Or get it from any other laravel project in this world. It will be fixed instantly. It doesn’t kill me.

0
source

Source: https://habr.com/ru/post/1245289/


All Articles