Laravel 5.2 php artisan routes not working

久未见 提交于 2019-12-14 03:45:56

问题


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


回答1:


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



来源:https://stackoverflow.com/questions/36077692/laravel-5-2-php-artisan-routes-not-working

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!