| Conditions | 2 |
| Paths | 2 |
| Total Lines | 17 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | public function boot() |
||
| 13 | { |
||
| 14 | if ($this->app->runningInConsole()) { |
||
| 15 | $this->commands([ |
||
| 16 | ChuckNorrisJoke::class, |
||
| 17 | ]); |
||
| 18 | } |
||
| 19 | |||
| 20 | $this->loadViewsFrom(__DIR__.'/../resources/views', 'chuck-norris'); |
||
| 21 | $this->publishes([ |
||
| 22 | __DIR__.'/../resources/views' => resource_path('views/vendor/chuck-norris'), |
||
| 23 | ], 'views'); |
||
| 24 | $this->publishes([ |
||
| 25 | __DIR__.'/../config/chuck-norris.php' => base_path('config/chuck-norris.php'), |
||
| 26 | ], 'config'); |
||
| 27 | |||
| 28 | Route::get(config('chuck-norris.route'), ChuckNorrisController::class); |
||
| 29 | } |
||
| 40 |