Mansoor H
Mansoor H

Reputation: 604

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

Upvotes: 5

Views: 8116

Answers (1)

Alexey Mezenin
Alexey Mezenin

Reputation: 163798

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

Upvotes: 7

Related Questions