| Total Complexity | 5 |
| Total Lines | 29 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 3 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | class ServiceProvider extends \Illuminate\Support\ServiceProvider |
||
| 8 | { |
||
| 9 | public function boot(): void |
||
| 10 | { |
||
| 11 | if ($this->app->runningInConsole()) { |
||
| 12 | if (NovaExportConfig::$runsMigrations) { |
||
| 13 | $this->loadMigrationsFrom(__DIR__.'/../database/migrations'); |
||
| 14 | } |
||
| 15 | |||
| 16 | $this->publishes([ |
||
| 17 | __DIR__ . '/../config/nova-export-configuration.php' => config_path('nova-export-configuration.php'), |
||
| 18 | ], 'config'); |
||
| 19 | } |
||
| 20 | |||
| 21 | $this->configureExportResource(); |
||
| 22 | } |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @inheritDoc |
||
| 26 | */ |
||
| 27 | public function register() |
||
| 28 | { |
||
| 29 | $this->mergeConfigFrom(__DIR__ . '/../config/nova-export-configuration.php', 'nova-export-configuration'); |
||
| 30 | } |
||
| 31 | |||
| 32 | public function configureExportResource(): void |
||
| 36 | } |
||
| 37 | } |
||
| 38 |