| Conditions | 2 |
| Paths | 2 |
| Total Lines | 17 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 5 | ||
| Bugs | 2 | Features | 1 |
| 1 | <?php |
||
| 17 | public function boot() |
||
| 18 | { |
||
| 19 | $this->publishes([ |
||
| 20 | __DIR__.'/config/laracart.php' => config_path('laracart.php'), |
||
| 21 | ]); |
||
| 22 | |||
| 23 | $this->mergeConfigFrom( |
||
| 24 | __DIR__.'/config/laracart.php', |
||
| 25 | 'laracart' |
||
| 26 | ); |
||
| 27 | |||
| 28 | if (!$this->migrationHasAlreadyBeenPublished()) { |
||
| 29 | $this->publishes([ |
||
| 30 | __DIR__.'/database/migrations/add_cart_session_id_to_users_table.php.stub' => database_path('migrations/'.date('Y_m_d_His').'_add_cart_session_id_to_users_table.php'), |
||
| 31 | ], 'migrations'); |
||
| 32 | } |
||
| 33 | } |
||
| 34 | |||
| 74 |