Commit a59a1416 authored by Taylor Otwell's avatar Taylor Otwell

Merge pull request #3106 from hannesvdvreken/patch-2

fix php artisan serve functionality with hardcoded values
parents c494e831 3dfc5fc7
...@@ -4,9 +4,9 @@ $uri = parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH); ...@@ -4,9 +4,9 @@ $uri = parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH);
$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 @@ if ($uri !== '/' and file_exists($requested)) ...@@ -16,4 +16,4 @@ if ($uri !== '/' and file_exists($requested))
return false; return false;
} }
require_once $paths['public'].'/index.php'; require_once $public . '/index.php';
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment