tenancy / multi-tenant

Run multiple websites using the same Laravel installation while keeping tenant specific data separated for fully independent multi-domain setups, previously github.com/hyn/multi-tenant
https://tenancy.dev
MIT License
2.56k stars 394 forks source link

Separating Database from Application is giving Issues. #957

Closed Lordwales closed 4 years ago

Lordwales commented 4 years ago

We currently use tenancy package for one of our application and we would like to separate our database server from our Application but Hyn wont allow that. Something like this download . Is there a work around for this?

Thanks in advance .

johnzon commented 4 years ago

I had similar problem. Migration is filing because HNY is creating the tenant user with the IP address of the database server causing a permission issue. HNY should create user as 'user@%'

fletch3555 commented 4 years ago

Apologies for the delay. This has been asked and answered a few times now (here's one example #932, though not a thorough explanation there). Hyn supports it, but with an extra step. Not great, but we're not putting a ton of effort into hyn right now.

marnickmenting commented 1 year ago

I added some sample code here: https://github.com/tenancy/multi-tenant/pull/932