From 8fbd2cda4e5cacea421bdee8111c0efceab3703a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20=C5=A0tancl?= Date: Mon, 30 Sep 2019 16:07:01 +0200 Subject: [PATCH] Add array_filter for consistency with Laravel --- src/Commands/MigrateFresh.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Commands/MigrateFresh.php b/src/Commands/MigrateFresh.php index 8fb54c52..9d20ec7c 100644 --- a/src/Commands/MigrateFresh.php +++ b/src/Commands/MigrateFresh.php @@ -41,10 +41,10 @@ final class MigrateFresh extends Command tenancy()->initialize($tenant); - $this->call('db:wipe', [ + $this->call('db:wipe', array_filter([ '--database' => $tenant->getDatabaseConnection(), '--force' => true, - ]); + ])); $this->call('tenants:migrate', [ '--tenants' => [$tenant->id],