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