Skip to content

Commit

Permalink
Fix migration publishing on install
Browse files Browse the repository at this point in the history
  • Loading branch information
ifox committed Aug 21, 2019
1 parent bbcfc72 commit 1031272
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TwillServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -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]));
}
}
}
Expand Down

0 comments on commit 1031272

Please sign in to comment.