From a7c6fa7d290f7dfce08e7794ebb5c53a10d17b97 Mon Sep 17 00:00:00 2001 From: Eser DENIZ Date: Mon, 20 Nov 2023 19:43:18 +0000 Subject: [PATCH] Even better --- src/SocialstreamServiceProvider.php | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/SocialstreamServiceProvider.php b/src/SocialstreamServiceProvider.php index c0c4b791..359fde0e 100644 --- a/src/SocialstreamServiceProvider.php +++ b/src/SocialstreamServiceProvider.php @@ -41,13 +41,6 @@ class SocialstreamServiceProvider extends ServiceProvider public function register(): void { $this->mergeConfigFrom(__DIR__.'/../config/socialstream.php', 'socialstream'); - - if(config('jetstream.stack') === 'livewire' && class_exists(Livewire::class)) { - $this->app->afterResolving(Livewire::class, function () { - Livewire::component('profile.set-password-form', SetPasswordForm::class); - Livewire::component('profile.connected-accounts-form', ConnectedAccountsForm::class); - }); - } } /** @@ -62,6 +55,11 @@ public function boot(): void $this->bootLaravelJetstream(); $this->bootFilament(); $this->bootInertia(); + + if(config('jetstream.stack') === 'livewire' && class_exists(Livewire::class)) { + Livewire::component('profile.set-password-form', SetPasswordForm::class); + Livewire::component('profile.connected-accounts-form', ConnectedAccountsForm::class); + } } /**