Merge pull request #3106 from hannesvdvreken/patch-2

fix php artisan serve functionality with hardcoded values
This commit is contained in:
Taylor Otwell 2014-11-05 09:48:05 -06:00
commit a59a1416cb
1 changed files with 3 additions and 3 deletions

View File

@ -4,9 +4,9 @@
$uri = urldecode($uri); $uri = urldecode($uri);
$paths = require __DIR__.'/bootstrap/paths.php'; $public = __DIR__ . '/public';
$requested = $paths['public'].$uri; $requested = $public . $uri;
// This file allows us to emulate Apache's "mod_rewrite" functionality from the // 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 // built-in PHP web server. This provides a convenient way to test a Laravel
@ -16,4 +16,4 @@
return false; return false;
} }
require_once $paths['public'].'/index.php'; require_once $public . '/index.php';