Conditions | 3 |
Paths | 4 |
Total Lines | 18 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
15 | public function boot(): void |
||
16 | { |
||
17 | /* |
||
18 | * Optional methods to load your package assets |
||
19 | */ |
||
20 | if (config('laravel-schemacrawler.routes_enabled')) { |
||
21 | $this->loadRoutesFrom(__DIR__.'/Http/routes.php'); |
||
22 | } |
||
23 | |||
24 | if ($this->app->runningInConsole()) { |
||
25 | $this->publishes([ |
||
26 | __DIR__.'/../config/config.php' => config_path('laravel-schemacrawler.php'), |
||
27 | ], 'config'); |
||
28 | |||
29 | // Registering package commands. |
||
30 | $this->commands([SchemaCrawlerCommand::class]); |
||
31 | } |
||
32 | } |
||
33 | |||
50 |