mirror of
https://github.com/laravel/valet.git
synced 2026-02-04 08:10:07 +01:00
Support the app_dev.php front controller
This commit is contained in:
@@ -46,6 +46,13 @@ public function frontControllerPath($sitePath, $siteName, $uri)
|
||||
return $sitePath.'/web/install.php';
|
||||
}
|
||||
|
||||
if (0 === strncmp($uri, '/app_dev.php', 12)) {
|
||||
$_SERVER['SCRIPT_NAME'] = '/app_dev.php';
|
||||
$_SERVER['SCRIPT_FILENAME'] = $sitePath.'/app_dev.php';
|
||||
|
||||
return $sitePath.'/web/app_dev.php';
|
||||
}
|
||||
|
||||
return $sitePath.'/web/app.php';
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user