| Total Complexity | 6 |
| Total Lines | 51 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | class CollectServiceProvider extends ServiceProvider |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * Bootstrap the application events. |
||
| 15 | * |
||
| 16 | * @return void |
||
| 17 | */ |
||
| 18 | public function boot() |
||
| 19 | { |
||
| 20 | $this->registerPublishes(); |
||
| 21 | $this->registerMigrations(); |
||
| 22 | } |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Register the service provider. |
||
| 26 | * |
||
| 27 | * @return void |
||
| 28 | */ |
||
| 29 | public function register() |
||
| 32 | } |
||
| 33 | |||
| 34 | public function registerContracts() |
||
| 38 | } |
||
| 39 | |||
| 40 | /** |
||
| 41 | * Setup the resource publishing groups for Love. |
||
| 42 | * |
||
| 43 | * @return void |
||
| 44 | */ |
||
| 45 | protected function registerPublishes() |
||
| 46 | { |
||
| 47 | if ($this->app->runningInConsole()) { |
||
| 48 | $this->publishes([ |
||
| 49 | __DIR__ . '/../../database/migrations' => database_path('migrations'), |
||
| 50 | ], 'migrations'); |
||
| 51 | } |
||
| 52 | } |
||
| 53 | |||
| 54 | /** |
||
| 55 | * Register the Love migrations. |
||
| 56 | * |
||
| 57 | * @return void |
||
| 58 | */ |
||
| 59 | protected function registerMigrations() |
||
| 62 | } |
||
| 63 | } |
||
| 64 |