Skip to content

Commit

Permalink
Like Jetstream
Browse files Browse the repository at this point in the history
  • Loading branch information
SRWieZ committed Nov 20, 2023
1 parent 9de64b9 commit 20be772
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/SocialstreamServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
use JoelButcher\Socialstream\Resolvers\OAuth\TwitterOAuth2RefreshResolver;
use Laravel\Jetstream\Jetstream;
use Livewire\Livewire;
use Livewire\LivewireManager;

class SocialstreamServiceProvider extends ServiceProvider
{
Expand All @@ -43,11 +42,9 @@ public function register(): void
{
$this->mergeConfigFrom(__DIR__.'/../config/socialstream.php', 'socialstream');

if(config('jetstream.stack') === 'livewire' && class_exists(LivewireManager::class)) {
$this->app->afterResolving(LivewireManager::class, function () {
Livewire::component('profile.set-password-form', SetPasswordForm::class);
Livewire::component('profile.connected-accounts-form', ConnectedAccountsForm::class);
});
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 20be772

Please sign in to comment.