mirror of
https://github.com/stancl/tenancy-docs.git
synced 2025-12-12 18:24:03 +00:00
Merge pull request #8 from drbyte/patch-6
Update custom-database-names.blade.md
This commit is contained in:
commit
be80bc9a8b
1 changed files with 3 additions and 3 deletions
|
|
@ -7,9 +7,9 @@ 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, set 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:
|
||||
You should do this during the tenant creation process, to make sure the right database name is used during database creation.
|
||||
|
||||
```php
|
||||
use Stancl\Tenancy\Tenant;
|
||||
|
|
@ -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