| Conditions | 2 |
| Paths | 2 |
| Total Lines | 22 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 13 |
| CRAP Score | 2.0014 |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | 1 | public function boot() |
|
| 15 | { |
||
| 16 | 1 | if (config('route-list.debug') != config('app.debug')) { |
|
| 17 | return; |
||
| 18 | } |
||
| 19 | |||
| 20 | 1 | $this->loadViewComponentsAs('route-list', [ |
|
| 21 | 1 | View\Components\Table::class, |
|
| 22 | ]); |
||
| 23 | |||
| 24 | 1 | $this->loadRoutesFrom(__DIR__.'/../routes/web.php'); |
|
| 25 | |||
| 26 | 1 | $this->loadViewsFrom(__DIR__.'/../resources/views', 'route-list'); |
|
| 27 | |||
| 28 | 1 | $this->publishes([ |
|
| 29 | 1 | __DIR__.'/../config/route-list.php' => config_path('route-list.php'), |
|
| 30 | 1 | ], 'config'); |
|
| 31 | |||
| 32 | 1 | $this->publishes([ |
|
| 33 | 1 | __DIR__.'/../public/vendor/route-list' => public_path('vendor/route-list'), |
|
| 34 | 1 | ], 'public'); |
|
| 35 | 1 | } |
|
| 36 | |||
| 47 |