Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bedrock Valet Driver - Non framework PHP files result in framework 404 #539

Closed
christianmagill opened this issue Mar 22, 2018 · 2 comments
Closed

Comments

@christianmagill
Copy link

Using the default Bedrock Valet Driver, it's impossible to load PHP files outside of the framework.

I can load the file "/web/legacy/test.txt" just fine, however "/web/legacy/test.php" results in a 404 page within the framework.

How can I solve this issue? Thanks for any help you can provide.

@christianmagill
Copy link
Author

The only way I could get things to work is check if the uri exists in the frontControllerPath method

public function frontControllerPath($sitePath, $siteName, $uri)
{

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

@fishtankmike
Copy link

@christianmagill where would I put this fix?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants