Laravel valet park shows XAMPP main page

时间:2017-08-30 20:33:04

标签: php laravel laravel-valet

I am currently learning PHP Laravel. I am in the process of setting up valet. However, I encountered a problem. Whenever I type (filename).dev, it shows the XAMPP main page instead of the Laravel initial project page. Can someone explain why this is happening?

1 个答案:

答案 0 :(得分:0)

可以找到原始答案here

  • 完全删除代客(某些原因代客卸载什么都没做)所以要获取最新版本(当时是v1.1.3)
  • 停止Apache:apachectl stop
  • 更新代客:composer global require laravel/valet
  • 安装代客:valet install
  • 重新启动代客:valet restart

对于其他一些人来说,尝试简单地关闭/停止本地运行的Apache可能是一个不错的选择,因为其他人可能会发现这只是修复它的问题。