命令“服务”未定义(Lumen-Laravel)
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/36274652/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Command "serve" is not defined (Lumen-Laravel)
提问by apapipip
So, i try to install the lumen restful api. Based on tutorial, i have to "serve" on php artisan. The command be like:
所以,我尝试安装 lumen restful api。根据教程,我必须在 php artisan 上“服务”。命令如下:
php artisan serve sample_api sample_api/public
php 工匠服务 sample_api sample_api/public
then it shows:
然后它显示:
Some say that serve command has been deleted in laravel 5 (which i use it). if so, what command should i use? or maybe find another tutorial?
有人说在 laravel 5(我使用它)中删除了 serve 命令。如果是这样,我应该使用什么命令?或者找另一个教程?
Ps: Im a newbie :)
Ps:我是新手:)
Thanks a lot!
非常感谢!
回答by Oussema Chaabouni
You can use
您可以使用
php -S localhost:8080 -t public/