Update custom-database-names.blade.md

This commit is contained in:
Chris Brown 2019-09-23 17:22:37 -04:00 committed by GitHub
parent a1317ae612
commit 9c89a7b7c6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -7,7 +7,7 @@ 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, 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: 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', [ Tenant::create('example.com', [
'_tenancy_db_name' => 'example_com' '_tenancy_db_name' => 'example_com'
]) ])
``` ```