| Conditions | 2 |
| Paths | 2 |
| Total Lines | 15 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | public function boot() |
||
| 16 | { |
||
| 17 | $this->publishes([ |
||
| 18 | __DIR__.'/../config/activitylog.php' => config_path('activitylog.php'), |
||
| 19 | ], 'config'); |
||
| 20 | |||
| 21 | $this->mergeConfigFrom(__DIR__.'/../config/activitylog.php', 'activitylog'); |
||
| 22 | |||
| 23 | if (! class_exists('CreateActivityLogTable')) { |
||
| 24 | $timestamp = date('Y_m_d_His', time()); |
||
| 25 | $this->publishes([ |
||
| 26 | __DIR__.'/../migrations/create_activity_log_table.php.stub' => database_path("/migrations/{$timestamp}_create_activity_log_table.php"), |
||
| 27 | ], 'migrations'); |
||
| 28 | } |
||
| 29 | } |
||
| 30 | |||
| 48 | } |