tenancy / docs

@tenancy documentation markdown files and index.
13 stars 95 forks source link

Tenant aware tinker should define tenant interface #168

Open fabricecw opened 4 years ago

fabricecw commented 4 years ago

Instead of defining the connection, we should also define the Hyn\Tenancy\Contracts\Tenant interface. This ensures that retrieving the current website via app(\Hyn\Tenancy\Environment::class)->tenant(); as suggested in the docs is possible.

ArlonAntonius commented 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

fabricecw commented 4 years ago

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.