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

Tenant aware tinker should define tenant interface #168

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

fabricecw
Copy link

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.

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
Copy link
Member

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
Copy link
Author

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.

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

Successfully merging this pull request may close these issues.

2 participants