Adding bootstrap/paths.php to allow specification of custom paths for sections of Laravel.
Signed-off-by: Ben Corlett <bencorlett@me.com>
This commit is contained in:
@@ -4,7 +4,9 @@ $uri = parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH);
|
||||
|
||||
$uri = urldecode($uri);
|
||||
|
||||
$requested = __DIR__.'/public'.$uri;
|
||||
$paths = require __DIR__.'/bootstrap/paths.php';
|
||||
|
||||
$requested = $paths['public'].$uri;
|
||||
|
||||
// This file allows us to emulate Apache's "mod_rewrite" functionality from the
|
||||
// built-in PHP web server. This provides a convenient way to test a Laravel
|
||||
@@ -14,4 +16,4 @@ if ($uri !== '/' and file_exists($requested))
|
||||
return false;
|
||||
}
|
||||
|
||||
require_once(__DIR__ . '/public/index.php');
|
||||
require_once $paths['public'].'/index.php';
|
||||
|
||||
Reference in New Issue
Block a user