mirror of
https://github.com/laravel/valet.git
synced 2026-02-04 08:10:07 +01:00
Update BasicValetDriver.php
This commit is contained in:
committed by
Matt Stauffer
parent
c9685e376e
commit
fb63a3c855
@@ -25,9 +25,9 @@ public function serves($sitePath, $siteName, $uri)
|
||||
*/
|
||||
public function isStaticFile($sitePath, $siteName, $uri)
|
||||
{
|
||||
if (file_exists($staticFilePath = $sitePath.'/public'.$uri.'index.html')) {
|
||||
if (file_exists($staticFilePath = $sitePath.'/public'.rtrim($uri, '/').'/index.html')) {
|
||||
return $staticFilePath;
|
||||
} elseif (file_exists($staticFilePath = $sitePath.'/public'.$uri.'index.php')) {
|
||||
} elseif (file_exists($staticFilePath = $sitePath.'/public'.rtrim($uri, '/').'/index.php')) {
|
||||
return $staticFilePath;
|
||||
} elseif (file_exists($staticFilePath = $sitePath.'/public'.$uri)) {
|
||||
return $staticFilePath;
|
||||
|
||||
Reference in New Issue
Block a user