Why has the artisan serve command been removed from Lumen 5.2?

后端 未结 5 1909
春和景丽
春和景丽 2021-02-01 06:08

Please. Does anybody know why Lumen\'s team removed the command php artisan serve? That command was very helpful !.

5条回答
  •  情书的邮戳
    2021-02-01 06:41

    Alternatively, you can try changing into the public folder of your Lumen application and running php -S localhost:8080. This definitely works on OS X - not sure about other platforms. You can also listen on port 80 but you will need to invoke the command with admin rights.

    Although PHP's built-in web server was only added at version 5.4, Lumen requires PHP version 5.5.9 or higher, so this solution should work.

提交回复
热议问题