dtp791357 2015-11-24 12:31
浏览 59
已采纳

Laravel框架index.php

I have a project in laravel5 and I have directed virtual host on /public directory. Where should be my main page index.php now? There is some index.php in public folder already but it contains some content that I dont understand. So where should be my index now? Maybe in views?

  • 写回答

3条回答 默认 最新

  • dqy27359 2015-11-25 00:36
    关注

    If you are using Laravel 5.1 then your initial page should be this resources/views/welcome.blade.php.

    You can change it to any name. But also you should change the same in your Controller.

    Note : If you are rendering the view through controller then you should have the file name like this yourfilename.blade.php

    Your views should always inside resources/views/*

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(2条)
编辑
预览

报告相同问题?

手机看
程序员都在用的中文IT技术交流社区

程序员都在用的中文IT技术交流社区

专业的中文 IT 技术社区,与千万技术人共成长

专业的中文 IT 技术社区,与千万技术人共成长

关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!

关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!

客服 返回
顶部