mirror of
https://github.com/laravel/valet.git
synced 2026-02-04 16:10:08 +01:00
Merge pull request #1439 from drbyte/laravel-driver-public-php-files
Allow LaravelValetDriver to serve other /public/*.php files
This commit is contained in:
@@ -52,6 +52,11 @@ public function isStaticFile(string $sitePath, string $siteName, string $uri)/*:
|
||||
*/
|
||||
public function frontControllerPath(string $sitePath, string $siteName, string $uri): ?string
|
||||
{
|
||||
if (file_exists($staticFilePath = $sitePath.'/public'.$uri)
|
||||
&& $this->isActualFile($staticFilePath)) {
|
||||
return $staticFilePath;
|
||||
}
|
||||
|
||||
return $sitePath.'/public/index.php';
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user