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 数据库数据成问号了,前台查询正常,数据库查询是?号
  • ¥15 算法使用了tf-idf,用手肘图确定k值确定不了,第四轮廓系数又太小才有0.006088746097507285,如何解决?(相关搜索:数据处理)
  • ¥15 彩灯控制电路,会的加我QQ1482956179
  • ¥200 相机拍直接转存到电脑上 立拍立穿无线局域网传
  • ¥15 (关键词-电路设计)
  • ¥15 如何解决MIPS计算是否溢出
  • ¥15 vue中我代理了iframe,iframe却走的是路由,没有显示该显示的网站,这个该如何处理
  • ¥15 操作系统相关算法中while();的含义
  • ¥15 CNVcaller安装后无法找到文件
  • ¥15 visual studio2022中文乱码无法解决