diff --git a/src/ReverbServiceProvider.php b/src/ReverbServiceProvider.php index c46f224e..931c89d3 100644 --- a/src/ReverbServiceProvider.php +++ b/src/ReverbServiceProvider.php @@ -40,9 +40,10 @@ public function boot(): void ], ['reverb', 'reverb-config']); } - $this->loadViewsFrom(__DIR__.'/../resources/views', 'reverb'); if ($this->app->bound(\Laravel\Pulse\Pulse::class)) { + $this->loadViewsFrom(__DIR__.'/../resources/views', 'reverb'); + $this->callAfterResolving('livewire', function (LivewireManager $livewire) { $livewire->component('reverb.messages', Livewire\Messages::class); $livewire->component('reverb.connections', Livewire\Connections::class);