Conditions | 2 |
Paths | 2 |
Total Lines | 16 |
Lines | 0 |
Ratio | 0 % |
Tests | 10 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php namespace Cviebrock\EloquentTaggable; |
||
23 | public function boot(): void |
||
24 | { |
||
25 | 23 | $this->publishes([ |
|
26 | __DIR__ . '/../resources/config/taggable.php' => config_path('taggable.php'), |
||
27 | 23 | ], 'config'); |
|
28 | 23 | ||
29 | 23 | if (!class_exists('CreateTaggableTable')) { |
|
30 | $this->publishes([ |
||
31 | 23 | __DIR__.'/../resources/database/migrations/create_taggable_table.php.stub' => database_path('migrations/' . date('Y_m_d_His') . '_create_taggable_table.php'), |
|
32 | ], 'migrations'); |
||
33 | 1 | } |
|
34 | 1 | ||
35 | 1 | $this->loadMigrationsFrom( |
|
36 | __DIR__.'/../resources/database/migrations' |
||
37 | 1 | ); |
|
38 | 1 | } |
|
39 | 1 | ||
52 |