Skip to content

Commit

Permalink
check livewire
Browse files Browse the repository at this point in the history
  • Loading branch information
danpalmieri committed Apr 19, 2024
1 parent e5cf2e3 commit cce3334
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/JetstreamTeamUrlServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@ public function bootingPackage(): void
});

});

if (class_exists(\Livewire\Livewire::class, true)) {
\Livewire\Livewire::addPersistentMiddleware([
config('jetstream-team-url.middleware'),
]);
}
}

public function registeringPackage(): void
Expand Down

0 comments on commit cce3334

Please sign in to comment.