From 066c62b8d247fc431ea3a4f1a54f8df37f74a746 Mon Sep 17 00:00:00 2001 From: Sourav R Date: Sat, 1 May 2021 20:53:09 +0530 Subject: [PATCH] service provider --- src/LivewireModalServiceProvider.php | 50 ++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 src/LivewireModalServiceProvider.php diff --git a/src/LivewireModalServiceProvider.php b/src/LivewireModalServiceProvider.php new file mode 100644 index 0000000..1ac045f --- /dev/null +++ b/src/LivewireModalServiceProvider.php @@ -0,0 +1,50 @@ +loadViewsFrom(__DIR__.'/../resources/views', 'livewiremodal'); + + $this->loadViewComponentsAs('livewiremodal', [ + Base::class, + Spinner::class, + Alertify::class, + Modal::class, + Trigger::class, + ModalBase::class, + ]); + + $this->publishes([ + __DIR__.'/../public/dist' => public_path('vendor/livewiremodal'), + ], 'public'); + } + + /** + * Register any application services. + * + * @return void + */ + public function register() + { + // + } +}