Conditions | 3 |
Paths | 4 |
Total Lines | 15 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
20 | public function boot() |
||
21 | { |
||
22 | if ($this->app->runningInConsole()) { |
||
23 | $this->publishes([ |
||
24 | __DIR__.'/../config/state-machine.php' => config_path('state-machine.php'), |
||
25 | __DIR__.'/../config/laravel-statable.php' => config_path('laravel-statable.php'), |
||
26 | ], 'config'); |
||
27 | } |
||
28 | |||
29 | if (! class_exists('CreateStateHistoryTable')) { |
||
30 | $this->publishes([ |
||
31 | __DIR__.'/../database/migrations/create_state_history_table.php.stub' => database_path('migrations/'.date('Y_m_d_His', time()).'_create_state_history_table.php'), |
||
32 | ], 'migrations'); |
||
33 | } |
||
34 | } |
||
35 | |||
46 |