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