mirror of
https://github.com/stancl/tenancy-docs.git
synced 2025-12-12 10:14:03 +00:00
Add a note about https://github.com/archtechx/tenancy/issues/774
This commit is contained in:
parent
9003b7ab16
commit
3c4bda178f
1 changed files with 3 additions and 1 deletions
|
|
@ -51,6 +51,8 @@ Note that you don't want to grant the users the ability to grant themselves more
|
|||
|
||||
## Specifying template connections {#specifying-the-template-connections}
|
||||
|
||||
> **Important:** there should be no `tenant` connection in `config/database.php`. If you create a template connection for tenants, name it something like `tenant_template`. The `tenant` connection is entirely managed by the package and gets reset to `null` when tenancy is ended.
|
||||
|
||||
To specify the connection that should be used to construct this tenant's database connection (the array like you'd find in `config/database.php`, set the `tenancy_db_connection` key. Otherwise, the connection whose name is in the `tenancy.database.template_connection` config will be used. If that key is null, the central connection will be used.
|
||||
|
||||
## Specifying other connection details {#specifyng-other-connection-details}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue