mirror of
https://github.com/laravel/valet.git
synced 2026-02-05 16:40:05 +01:00
Allow execution of custom PHP files in Bedrock projects
All request to PHP files are directed trough index.php which results in a 404 when you try to access a php file directly
This commit is contained in:
@@ -55,6 +55,10 @@ public function frontControllerPath($sitePath, $siteName, $uri)
|
|||||||
? $sitePath.'/web'.$this->forceTrailingSlash($uri).'/index.php'
|
? $sitePath.'/web'.$this->forceTrailingSlash($uri).'/index.php'
|
||||||
: $sitePath.'/web'.$uri;
|
: $sitePath.'/web'.$uri;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if($uri !== '/' && file_exists($sitePath.'/web'.$uri)) {
|
||||||
|
return $sitePath.'/web'.$uri;
|
||||||
|
}
|
||||||
|
|
||||||
return $sitePath.'/web/index.php';
|
return $sitePath.'/web/index.php';
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user