diff --git a/src/LivewireAlertServiceProvider.php b/src/LivewireAlertServiceProvider.php index bf511d1..2f3aeb0 100755 --- a/src/LivewireAlertServiceProvider.php +++ b/src/LivewireAlertServiceProvider.php @@ -18,6 +18,7 @@ public function boot() $this->registerAlertMacro(); $this->registerFlashMacro(); $this->registerConfirmMacro(); + $this->registerPublishables(); } protected function registerViews() @@ -76,6 +77,15 @@ public function registerConfirmMacro() }); } + public function registerPublishables() + { + if ($this->app->runningInConsole()) { + $this->publishes([ + __DIR__ . '/../config/config.php' => config_path('livewire-alert.php'), + ], 'config'); + } + } + /** * Register the application services. */