mirror of
https://github.com/stancl/tenancy-docs.git
synced 2025-12-12 18:24:03 +00:00
Update custom-database-names.blade.md
This commit is contained in:
parent
a1317ae612
commit
9c89a7b7c6
1 changed files with 2 additions and 2 deletions
|
|
@ -7,7 +7,7 @@ section: content
|
|||
|
||||
# Custom Database Names {#custom-database-names}
|
||||
|
||||
To set the a database name for a tenant, use set `_tenancy_db_name` key in the tenant's storage.
|
||||
To set a specific database name for a tenant, specify the `_tenancy_db_name` key in the tenant's storage.
|
||||
|
||||
You should do this during the tenant creation process, to make sure the database is created with the right name:
|
||||
|
||||
|
|
@ -17,4 +17,4 @@ use Stancl\Tenancy\Tenant;
|
|||
Tenant::create('example.com', [
|
||||
'_tenancy_db_name' => 'example_com'
|
||||
])
|
||||
```
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue