Skip to content

Commit c155649

Browse files
committed
Refactored the date to be inline
1 parent 2ed09b1 commit c155649

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/LaravelTimezoneServiceProvider.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,8 @@ public function boot()
2727
{
2828
// Allow migrations publish
2929
if (! class_exists('AddTimezoneColumnToUsersTable')) {
30-
$timestamp = date('Y_m_d_His', time());
3130
$this->publishes([
32-
__DIR__.'/database/migrations/add_timezone_column_to_users_table.php.stub' => database_path("/migrations/{$timestamp}_add_timezone_column_to_users_table.php"),
31+
__DIR__.'/database/migrations/add_timezone_column_to_users_table.php.stub' => database_path('/migrations/' . date('Y_m_d_His') . '_add_timezone_column_to_users_table.php'),
3332
], 'migrations');
3433
}
3534

0 commit comments

Comments
 (0)