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:
François Gagné 2021-02-21 16:52:16 -05:00 committed by GitHub
parent e215a7a73e
commit 884a4dc13c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -39,4 +39,4 @@ App\Providers\RouteServiceProvider::class,
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.