mirror of
https://github.com/stancl/tenancy-docs.git
synced 2025-12-12 02:04:03 +00:00
No need to change tenancy.central_connection by default (#109)
The value of `central_connection` in `config/tenancy.php`:
```php
'central_connection' => env('DB_CONNECTION', 'central'),
```
This commit is contained in:
parent
e215a7a73e
commit
884a4dc13c
1 changed files with 1 additions and 1 deletions
|
|
@ -39,4 +39,4 @@ App\Providers\RouteServiceProvider::class,
|
||||||
App\Providers\TenancyServiceProvider::class, // <-- here
|
App\Providers\TenancyServiceProvider::class, // <-- here
|
||||||
```
|
```
|
||||||
|
|
||||||
And finally, name your central connection (in `config/database.php`) `central` — or however else you want, but make sure it's the same name as the `tenancy.central_connection` config.
|
And finally, if you want to use a different central database than the one defined by `DB_CONNECTION` in the file `.env`, name your central connection (in `config/database.php`) `central` — or however else you want, but make sure it's the same name as the `tenancy.central_connection` config.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue