Conditions | 2 |
Paths | 2 |
Total Lines | 15 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
14 | public function boot() |
||
15 | { |
||
16 | $this->publishes([ |
||
17 | __DIR__.'/../config/addresses.php' => config_path('addresses.php'), |
||
18 | ], 'config'); |
||
19 | |||
20 | $this->mergeConfigFrom(__DIR__.'/../config/addresses.php', 'addresses'); |
||
21 | |||
22 | if (! class_exists('CreateAddressesTable')) { |
||
23 | $timestamp = date('Y_m_d_His', time()); |
||
24 | $table = config('addresses.table_name'); |
||
25 | |||
26 | $this->publishes([ |
||
27 | __DIR__.'/../migrations/create_addresses_table.php.stub' => database_path("/migrations/{$timestamp}_create_{$table}_table.php"), |
||
28 | ], 'migrations'); |
||
29 | } |
||
41 |