From 103127280a2f1a1bd01a109a93807e786070bc11 Mon Sep 17 00:00:00 2001 From: Quentin Renard Date: Wed, 21 Aug 2019 11:09:46 -0400 Subject: [PATCH] Fix migration publishing on install --- src/TwillServiceProvider.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TwillServiceProvider.php b/src/TwillServiceProvider.php index 6eaba69d5..6d39d6727 100644 --- a/src/TwillServiceProvider.php +++ b/src/TwillServiceProvider.php @@ -268,7 +268,7 @@ private function publishMigration($migration, $publishKey = null) $timestamp = date('Y_m_d_His', time()); $this->publishes([ __DIR__ . '/../migrations/' . snake_case($migration) . '.php' => database_path('migrations/' . $timestamp . '_' . snake_case($migration) . '.php'), - ], ['migrations'] + (is_null($publishKey) ? [] : [$publishKey]); + ], ['migrations'] + (is_null($publishKey) ? [] : [$publishKey])); } } }