php Artisan serve命令不提供Laravel 5.8 [英] Php Artisan serve command not serving Laravel 5.8

查看:51
本文介绍了php Artisan serve命令不提供Laravel 5.8的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用5.8版安装了一个新的Laravel实例.一路上,我发现我无法使用普通的Laravel php artisan serve 命令为该项目提供服务.

I installed a new Laravel instance, using version 5.8. Along the way, I found out that I can't serve the project using the normal Laravel php artisan serve command.

经过大量反复试验的研究,我发现了这个 answer在StackOverflow上帮助了我使用此方法 php -S localhost:8000 -t public/,随后我将 port 更改为 port 9000, 并且它完美地为项目服务.

After some research with lots of trial and error, I came across this answer on StackOverflow that helped me with this method php -S localhost:8000 -t public/ with which I followed to change the port to port 9000, and it served the project perfectly.

现在我的问题是我该如何像以前一样将artisan命令作为默认命令来提供服务并在Windows上发布我的Laravel 5.8?我对配置Laravel核心命令一无所知.

Now my question is how can I go about getting the artisan command to be the default command to serve and rum my Laravel 5.8 on Windows just like before? I don't know anything about configuring Laravel core commands.

推荐答案

我尝试了此命令.

php -S  127.0.0.1:9000 -t public/

运行此命令后效果很好.

after running this its works fine.

以及 php artisan serve 命令也可以正常工作.

and also php artisan serve command works fine.

希望它会有所帮助.

这篇关于php Artisan serve命令不提供Laravel 5.8的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆