fix: correct inverted Livewire registration condition

The condition in registerLivewire() was inverted, causing the Livewire
listener to never be registered when Livewire was actually available.

Before: returned early when Livewire class exists AND is NOT bound
After: returns early when Livewire class does NOT exist OR is NOT bound

This fixes Livewire notifications not being displayed in Livewire components.
This commit is contained in:
Younes ENNAJI
2026-03-01 19:53:39 +00:00
parent 851e0a00ed
commit 2ebdbecda6
2 changed files with 43 additions and 1 deletions
+1 -1
View File
@@ -306,7 +306,7 @@ final class FlasherServiceProvider extends PluginServiceProvider
private function registerLivewire(): void
{
if (class_exists(LivewireManager::class) && !$this->app->bound('livewire')) {
if (!class_exists(LivewireManager::class) || !$this->app->bound('livewire')) {
return;
}