1
0
mirror of https://github.com/laravel/valet.git synced 2026-02-07 09:10:03 +01:00

Merge pull request #37 from KennedyTedesco/valet-driver

BasicValetDriver - Minor change
This commit is contained in:
Taylor Otwell
2016-05-08 23:56:23 -05:00

View File

@@ -27,7 +27,7 @@ public function isStaticFile($sitePath, $siteName, $uri)
{ {
if (file_exists($staticFilePath = $sitePath.'/public'.$uri)) { if (file_exists($staticFilePath = $sitePath.'/public'.$uri)) {
return $staticFilePath; return $staticFilePath;
} elseif (file_exists($staticFilePath = $sitePath.$uri) && ! is_dir($staticFilePath)) { } elseif ($this->isActualFile($staticFilePath = $sitePath.$uri)) {
return $staticFilePath; return $staticFilePath;
} }