diff --git a/src/FilamentJsoneditorServiceProvider.php b/src/FilamentJsoneditorServiceProvider.php index 3bcb2c8..d698f3d 100644 --- a/src/FilamentJsoneditorServiceProvider.php +++ b/src/FilamentJsoneditorServiceProvider.php @@ -23,33 +23,16 @@ class FilamentJsoneditorServiceProvider extends PluginServiceProvider 'invaders-filament-jsoneditor' => __DIR__ . '/../dist/jsoneditor/jsoneditor.min.css', ]; - public function boot() - { - $this->bootLoaders(); - $this->bootPublishing(); - } - - protected function bootPublishing() - { - if (! $this->app->runningInConsole()) { - return; - } - - $this->publishes([ - __DIR__ . '/../dist/jsoneditor/img/jsoneditor-icons.svg' => public_path('filament/assets/img/jsoneditor-icons.svg'), - ], 'filament-jsoneditor-img'); - } - - protected function bootLoaders() - { - $this->loadViewsFrom(__DIR__ . '/../resources/views', 'filament-jsoneditor'); - } - public function configurePackage(Package $package): void { $package ->name(self::$name) ->hasConfigFile() + ->hasAssets() ->hasViews(); + + $this->publishes([ + __DIR__ . '/../dist/jsoneditor/img/jsoneditor-icons.svg' => public_path('filament/assets/img/jsoneditor-icons.svg'), + ], 'filament-jsoneditor-img'); } }