Conditions | 3 |
Paths | 3 |
Total Lines | 11 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
12 | public function boot() |
||
13 | { |
||
14 | if ($this->app->runningInConsole()) { |
||
15 | $this->publishes([ |
||
16 | __DIR__ . '/../config/config.php' => config_path('commentable.php'), |
||
17 | ], 'config'); |
||
18 | |||
19 | if (! class_exists('CreateCommentableTable')) { |
||
20 | $this->publishes([ |
||
21 | __DIR__ . '/../database/migrations/commentable_table.php.stub' => database_path('migrations/' . date('Y_m_d_His', time()) . '_create_commentable_table.php'), |
||
22 | ], 'migrations'); |
||
23 | } |
||
35 |