mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-15 20:34:04 +00:00
Merge branch 'master' of github.com:archtechx/tenancy into cache-prefix
This commit is contained in:
commit
93aaba3e11
22 changed files with 709 additions and 49 deletions
|
|
@ -25,7 +25,7 @@ class DatabaseTenancyBootstrapper implements TenancyBootstrapper
|
|||
/** @var TenantWithDatabase $tenant */
|
||||
|
||||
// Better debugging, but breaks cached lookup in prod
|
||||
if (app()->environment('local')) {
|
||||
if (app()->environment('local') || app()->environment('testing')) { // todo@docs mention this change in v4 upgrade guide https://github.com/archtechx/tenancy/pull/945#issuecomment-1268206149
|
||||
$database = $tenant->database()->getName();
|
||||
if (! $tenant->database()->manager()->databaseExists($database)) {
|
||||
throw new TenantDatabaseDoesNotExistException($database);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue