Skip to content

Commit

Permalink
Even better
Browse files Browse the repository at this point in the history
  • Loading branch information
SRWieZ committed Nov 20, 2023
1 parent 694ce8d commit a7c6fa7
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/SocialstreamServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
}
}

/**
Expand All @@ -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);
}
}

/**
Expand Down

0 comments on commit a7c6fa7

Please sign in to comment.