Skip to content

Conversation

@kaisersly
Copy link

Updates the Tenants topic to explain how to access the central context from a tenant's perspective.

Updates the Tenants topic to explain how to access the central context from a tenant's perspective.

## Accessing the central application {#accessing-the-central-application}

When your code executes in the context of a tenant (for instance, when the `DatabaseMigrated` event is dispatched), you may access the central application context by using the `tenancy()->central($callback)` function.
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think the point about DatabaseMigrated is needed here, it probably adds confusion.

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