Laravel 5 – Remove Public from URL

后端 未结 30 2370
甜味超标
甜味超标 2020-11-22 03:20

I know this is a very popular question but I haven\'t been able to find a working solution for Laravel 5. I\'ve been trying to migrate from Codeigniter for a long time, but

30条回答
  •  無奈伤痛
    2020-11-22 03:54

    Let's say you placed all the other files and directories in a folder named 'locale'.

    enter image description here

    Just go to index.php and find these two lines:

    require __DIR__.'/../bootstrap/autoload.php';
    
    $app = require_once __DIR__.'/../bootstrap/app.php';
    

    and change them to this:

    require __DIR__.'/locale/bootstrap/autoload.php';
    
    $app = require_once __DIR__.'/locale/bootstrap/app.php';
    

提交回复
热议问题