dtp791357 2015-11-24 20: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 08: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条)

报告相同问题?