| Conditions | 3 |
| Paths | 4 |
| Total Lines | 19 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 20 | protected function registerPublishables(): void |
||
| 21 | { |
||
| 22 | if ($this->app->runningInConsole()) { |
||
| 23 | $this->loadMigrationsFrom(__DIR__.'/../database/migrations/'); |
||
| 24 | } |
||
| 25 | |||
| 26 | if (! class_exists('CreateSuspensionsTable')) { |
||
| 27 | $timestamp = date('Y_m_d_His', time()); |
||
| 28 | |||
| 29 | $this->publishes([ |
||
| 30 | __DIR__ . '/../database/migrations/create_suspensions_table.php.stub' => database_path('migrations/'.$timestamp.'_create_suspensions_table.php'), |
||
| 31 | ], 'migrations'); |
||
| 32 | } |
||
| 33 | |||
| 34 | $this->publishes([ |
||
| 35 | __DIR__.'/../config/model-suspension.php' => config_path('model-suspension.php'), |
||
| 36 | ], 'config'); |
||
| 37 | |||
| 38 | $this->guardAgainstInvalidSuspensionModel(); |
||
| 39 | } |
||
| 50 |