doulan1866 2016-02-15 19:58
浏览 218

php artisan serve给出一个空白页面

My application folder is c:/wamp/www/newapp. When I use php artisan serve from the newapp folder the server starts at port 8000.

Of course I switch off the WAMP server when I do this however I get a blank page! I tried making a test.html in the newapp/public folder and it works if I type localhost:8000/test.html, but it does not go to the landing page!

For your information: when I use WAMP server and type localhost/newapp/public it goes to the landing page, but playing with the routes.php does not work when using WAMP.

My question is, how do I get to the landing page using php artisan serve?

My Laravel version is 4.2.0.

  • 写回答

1条回答 默认 最新

  • dotn30471 2016-02-15 21:20
    关注

    Here are a couple of possible fixes:

    • run composer install
    • Try to run php -S localhost:8000 -t public/ in the root of your project (not sure if this works on Windows though)

    If this doesn't work you can try to use homestead

    评论

报告相同问题?

悬赏问题

  • ¥15 关于#python#的问题:求帮写python代码
  • ¥20 MATLAB画图图形出现上下震荡的线条
  • ¥15 LiBeAs的带隙等于0.997eV,计算阴离子的N和P
  • ¥15 关于#windows#的问题:怎么用WIN 11系统的电脑 克隆WIN NT3.51-4.0系统的硬盘
  • ¥15 来真人,不要ai!matlab有关常微分方程的问题求解决,
  • ¥15 perl MISA分析p3_in脚本出错
  • ¥15 k8s部署jupyterlab,jupyterlab保存不了文件
  • ¥15 ubuntu虚拟机打包apk错误
  • ¥199 rust编程架构设计的方案 有偿
  • ¥15 回答4f系统的像差计算