| Conditions | 4 |
| Paths | 8 |
| Total Lines | 32 |
| Code Lines | 18 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 14 | public function boot() |
||
| 15 | { |
||
| 16 | // Publish config file (before migrations in case config values are used in migrations) |
||
| 17 | $this->publishes([ |
||
| 18 | __DIR__.'/../../config/tracking.php' => config_path('tracking.php'), |
||
| 19 | ], 'config'); |
||
| 20 | |||
| 21 | // `TrackActivity` migration file |
||
| 22 | if (! class_exists('CreateTrackActionTable')) { |
||
| 23 | $this->publishes([ |
||
| 24 | __DIR__.'/../database/migrations/create_track_action_table.php.stub' => database_path( |
||
| 25 | 'migrations/'.date('Y_m_d_His', time()).'_create_track_action_table.php' |
||
| 26 | ), |
||
| 27 | ], 'migration'); |
||
| 28 | } |
||
| 29 | |||
| 30 | // `TrackAction` migration file |
||
| 31 | if (! class_exists('CreateTrackActivityTable')) { |
||
| 32 | $this->publishes([ |
||
| 33 | __DIR__.'/../database/migrations/create_track_activity_table.php.stub' => database_path( |
||
| 34 | 'migrations/'.date('Y_m_d_His', time()).'_create_track_activity_table.php' |
||
| 35 | ), |
||
| 36 | ], 'migration'); |
||
| 37 | } |
||
| 38 | |||
| 39 | // `TrackTraffic` migration file |
||
| 40 | if (! class_exists('CreateTrackTrafficTable')) { |
||
| 41 | $this->publishes([ |
||
| 42 | __DIR__.'/../database/migrations/create_track_traffic_table.php.stub' => database_path( |
||
| 43 | 'migrations/'.date('Y_m_d_His', time()).'_create_track_traffic_table.php' |
||
| 44 | ), |
||
| 45 | ], 'migration'); |
||
| 46 | } |
||
| 63 |