Removing the /public segment in a Laravel 4

Move all files and folders from public to your app.

Edit our paths in index.php:

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

And then just set the public dir in out /bootstrap/paths.php file:

	
'public' => __DIR__.'/..',

source: http://creolab.hr/2013/03/removing-the-public-segment-in-a-laravel-4-app/

B logbook : PHP | Javascript | Laravel | CodeIgniter | VueJs | ReactJs | WordPress

Translate »