| Conditions | 2 |
| Paths | 2 |
| Total Lines | 16 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | public function boot() |
||
| 14 | { |
||
| 15 | /* |
||
| 16 | * Optional methods to load your package assets |
||
| 17 | */ |
||
| 18 | $this->loadViewsFrom(__DIR__.'/../resources/views', 'blade-form-components'); |
||
| 19 | |||
| 20 | if ($this->app->runningInConsole()) { |
||
| 21 | $this->publishes([ |
||
| 22 | __DIR__.'/../config/config.php' => config_path('blade-form-components.php'), |
||
| 23 | ], 'config'); |
||
| 24 | } |
||
| 25 | |||
| 26 | Blade::directive( |
||
| 27 | 'form', |
||
| 28 | $this->app->make(CompileFormDirective::class) |
||
| 29 | ); |
||
| 45 |