mirror of
https://github.com/laravel/valet.git
synced 2026-02-05 00:20:08 +01:00
Use isActualFile
This commit is contained in:
@@ -58,11 +58,11 @@ public function frontControllerPath($sitePath, $siteName, $uri)
|
|||||||
|
|
||||||
$scriptName = '/index.php';
|
$scriptName = '/index.php';
|
||||||
|
|
||||||
if (file_exists($sitePath.'/index.php')) {
|
if ($this->isActualFile($sitePath.'/index.php')) {
|
||||||
$indexPath = $sitePath.'/index.php';
|
$indexPath = $sitePath.'/index.php';
|
||||||
}
|
}
|
||||||
|
|
||||||
if (file_exists($sitePath.'/public/index.php')) {
|
if ($this->isActualFile($sitePath.'/public/index.php')) {
|
||||||
$indexPath = $sitePath.'/public/index.php';
|
$indexPath = $sitePath.'/public/index.php';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user