Open fabricecw opened 4 years ago
I know these are some old docs and I know we don't recommemd setting the tenant whenever cause it changes a lot in the application so not sure on this.
Calling backup: @bkintanar
Thanks for your feedback. But isn't it exactly what we expect when running "tinker on a tenant website"?
Looking forward for @bkintanar's view.
Instead of defining the connection, we should also define the
Hyn\Tenancy\Contracts\Tenant
interface. This ensures that retrieving the current website viaapp(\Hyn\Tenancy\Environment::class)->tenant();
as suggested in the docs is possible.