You've already forked php-flasher
mirror of
https://github.com/php-flasher/php-flasher.git
synced 2026-04-05 12:32:55 +01:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user