| Conditions | 5 |
| Paths | 16 |
| Total Lines | 41 |
| Code Lines | 23 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 14 | public function boot() |
||
| 15 | { |
||
| 16 | // Publish config file |
||
| 17 | $this->publishes([ |
||
| 18 | __DIR__.'/../../config/users.php' => config_path('users.php'), |
||
| 19 | ], 'config'); |
||
| 20 | |||
| 21 | // `Role` migration file |
||
| 22 | if (! class_exists('CreateRoleTable')) { |
||
| 23 | $this->publishes([ |
||
| 24 | __DIR__.'/../../database/migrations/create_role_table.php.stub' => database_path( |
||
| 25 | 'migrations/'.date('Y_m_d_His', time()).'_create_role_table.php' |
||
| 26 | ), |
||
| 27 | ], 'migration'); |
||
| 28 | } |
||
| 29 | |||
| 30 | // `Team` migration file |
||
| 31 | if (! class_exists('CreateTeamTable')) { |
||
| 32 | $this->publishes([ |
||
| 33 | __DIR__.'/../../database/migrations/create_team_table.php.stub' => database_path( |
||
| 34 | 'migrations/'.date('Y_m_d_His', time()).'_create_team_table.php' |
||
| 35 | ), |
||
| 36 | ], 'migration'); |
||
| 37 | } |
||
| 38 | |||
| 39 | // `User` migration file |
||
| 40 | if (! class_exists('CreateUserTable')) { |
||
| 41 | $this->publishes([ |
||
| 42 | __DIR__.'/../../database/migrations/create_user_table.php.stub' => database_path( |
||
| 43 | 'migrations/'.date('Y_m_d_His', time()).'_create_team_table.php' |
||
| 44 | ), |
||
| 45 | ], 'migration'); |
||
| 46 | } |
||
| 47 | |||
| 48 | // `UserNotification` migration file |
||
| 49 | if (! class_exists('CreateUserNotificationTable')) { |
||
| 50 | $this->publishes([ |
||
| 51 | __DIR__.'/../../database/migrations/create_user_notification_table.php.stub' => database_path( |
||
| 52 | 'migrations/'.date('Y_m_d_His', time()).'_create_user_notification_table.php' |
||
| 53 | ), |
||
| 54 | ], 'migration'); |
||
| 55 | } |
||
| 69 |