Conditions | 3 |
Paths | 4 |
Total Lines | 18 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
9 | public function boot() |
||
10 | { |
||
11 | if ($this->app->runningInConsole()) { |
||
12 | $this->loadMigrationsFrom(__DIR__.'/../database/migrations/'); |
||
13 | } |
||
14 | |||
15 | if (! class_exists('CreateStatusesTable')) { |
||
16 | $timestamp = date('Y_m_d_His', time()); |
||
17 | |||
18 | $this->publishes([ |
||
19 | __DIR__.'/../database/migrations/create_statuses_table.php.stub.stub' => database_path('migrations/'.$timestamp.'create_statuses_table.php'), |
||
20 | ], 'migrations'); |
||
21 | } |
||
22 | |||
23 | $this->publishes([ |
||
24 | __DIR__.'/../config/model-status.php' => config_path('model-status.php'), |
||
25 | ], 'config'); |
||
26 | } |
||
27 | |||
33 |