5

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

Mansoor H
  • 594
  • 1
  • 8
  • 25
  • Possible duplicate of [Lumen - Missing commands](http://stackoverflow.com/questions/36080610/lumen-missing-commands) – patricus Apr 06 '16 at 03:32

1 Answers1

7

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

Alexey Mezenin
  • 158,981
  • 26
  • 290
  • 279
  • Its also not working it showing error like `[Symfony\Component\Console\Exception\CommandNotFoundException] There are no commands defined in the "route" namespace. ` – Mansoor H Mar 18 '16 at 06:43
  • If you run `php artisan` command, it will display all available commands. Please try, – Alexey Mezenin Mar 18 '16 at 06:48
  • Yes am running `php artisan` but not found `route` in that list – Mansoor H Mar 18 '16 at 06:50
  • It seems not everything was installed. Try to run `composer install`. Does it generate any error? – Alexey Mezenin Mar 18 '16 at 07:08
  • Its an up-to-date, its shows `Loading composer repositories with package information Installing dependencies (including require-dev) from lock file Nothing to install or update Generating autoload files ` – Mansoor H Mar 18 '16 at 07:15
  • Did you install Laravel 5.2, or you did upgrade from Laravel 4? If it's clean installation, I'd reccomend reinstall Laravel. If not, all I can reccomend is to reinstall all packages: https://www.dev-metal.com/composer-problems-try-full-reset/ - this will delete `vendor` directory and reinstall all packages. – Alexey Mezenin Mar 18 '16 at 07:19