Skip to content

Commit

Permalink
Merge pull request #1094 from unlocdavid/patch-1
Browse files Browse the repository at this point in the history
Allow execution of custom PHP files in Bedrock projects
  • Loading branch information
mattstauffer committed Oct 13, 2021
2 parents 233539d + 33733b0 commit e06f047
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cli/drivers/BedrockValetDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ public function frontControllerPath($sitePath, $siteName, $uri)
? $sitePath.'/web'.$this->forceTrailingSlash($uri).'/index.php'
: $sitePath.'/web'.$uri;
}

if($uri !== '/' && file_exists($sitePath.'/web'.$uri)) {
return $sitePath.'/web'.$uri;
}

return $sitePath.'/web/index.php';
}
Expand Down

0 comments on commit e06f047

Please sign in to comment.