KBK KBK - 8 months ago 231
PHP Question

Remove public from URL Laravel 5.3

I'm using Laravel 5.3 is there a easy way to remove public from URL? is it necessary to add a htacces. when I change the htacces it is getting a n error like below,

enter image description here


copy both htaccess and index.php file from public folder to root directory and then change root index.php code as below

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