We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 18de04d + d73f55c commit 345c2ceCopy full SHA for 345c2ce
src/FileModelServiceProvider.php
@@ -13,6 +13,8 @@ class FileModelServiceProvider extends ServiceProvider
13
*/
14
public function boot()
15
{
16
+ $now_slug = date('Y_m_d_His');
17
+
18
if ($this->app->runningInConsole())
19
20
$this->publishes([
@@ -36,8 +38,8 @@ public function boot()
36
38
], 'file-factory');
37
39
40
- __DIR__ . '/../templates/2020_03_12_152841_create_files_table.php' => database_path('migrations/2020_03_12_152841_create_files_table.php'),
41
+ __DIR__ . '/../templates/2020_03_12_152841_create_files_table.php' => database_path("migrations/{$now_slug}_create_files_table.php"),
42
], 'file-table');
43
}
44
-}
45
+}
0 commit comments