Conditions | 2 |
Paths | 2 |
Total Lines | 17 |
Lines | 0 |
Ratio | 0 % |
Tests | 11 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
26 | 4 | public function boot() |
|
27 | { |
||
28 | 4 | if (!class_exists('CreateAdvertTables')) { |
|
29 | 1 | $timestamp = date('Y_m_d_His', time()); |
|
30 | 1 | $this->publishes([ |
|
31 | 1 | __DIR__.'/../migrations/create_advert_tables.php.stub' => database_path()."/migrations/{$timestamp}_create_advert_tables.php", |
|
32 | 1 | ], 'migrations'); |
|
33 | } |
||
34 | |||
35 | 4 | $this->publishes([ |
|
36 | 4 | __DIR__.'/../config/advert.php' => config_path('ibrand/advert.php'), |
|
37 | ]); |
||
38 | |||
39 | 4 | Relation::morphMap( |
|
40 | 4 | config('ibrand.advert.models') |
|
41 | ); |
||
42 | 4 | } |
|
43 | |||
50 |