Merge pull request #8 from drbyte/patch-6

Update custom-database-names.blade.md
This commit is contained in:
Samuel Štancl 2019-09-24 16:11:30 +02:00 committed by GitHub
commit be80bc9a8b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -7,9 +7,9 @@ section: content
# Custom Database Names {#custom-database-names} # 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 ```php
use Stancl\Tenancy\Tenant; use Stancl\Tenancy\Tenant;
@ -17,4 +17,4 @@ use Stancl\Tenancy\Tenant;
Tenant::create('example.com', [ Tenant::create('example.com', [
'_tenancy_db_name' => 'example_com' '_tenancy_db_name' => 'example_com'
]) ])
``` ```