aaemnnosttv / bedrock-valet-driver

Laravel Valet Driver for the Roots Bedrock WordPress application project boilerplate
4 stars 4 forks source link

Multisite broken? #2

Open Horttcore opened 7 years ago

Horttcore commented 7 years ago

The native valet driver for a Bedrock setup seems to be broken in a multisite network. Have you any clue how to fix it?

aaemnnosttv commented 7 years ago

It works just fine with a subdomain type multisite, but needs help for working with a subdirectory type multisite install. I'm guessing this is the type you are having trouble with.

For subdirectory installs, you'll need to add a LocalValetDriver class as LocalValetDriver.php to the root of your site, extend the BedrockValetDriver and make the necessary changes there to make it work.

I'm planning on adding this in https://github.com/aaemnnosttv/wp-cli-valet-command/issues/5 but I don't think Valet is really able to reliably and easily detect this so it will probably never be fixed upstream for subdirectory multisites.