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); + } } /**