mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 12:24:04 +00:00
Add array_filter for consistency with Laravel
This commit is contained in:
parent
e00793573f
commit
8fbd2cda4e
1 changed files with 2 additions and 2 deletions
|
|
@ -41,10 +41,10 @@ final class MigrateFresh extends Command
|
||||||
|
|
||||||
tenancy()->initialize($tenant);
|
tenancy()->initialize($tenant);
|
||||||
|
|
||||||
$this->call('db:wipe', [
|
$this->call('db:wipe', array_filter([
|
||||||
'--database' => $tenant->getDatabaseConnection(),
|
'--database' => $tenant->getDatabaseConnection(),
|
||||||
'--force' => true,
|
'--force' => true,
|
||||||
]);
|
]));
|
||||||
|
|
||||||
$this->call('tenants:migrate', [
|
$this->call('tenants:migrate', [
|
||||||
'--tenants' => [$tenant->id],
|
'--tenants' => [$tenant->id],
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue