# Queue a broadcast instead of blocking the save

> ShouldBroadcast queues the event. ShouldBroadcastNow runs it inside the request. The Vue listener is the Reverb guide.

- URL: https://laravel-vuejs.space/laravel-should-broadcast-vue
- Author: Anass Ez-zouaine (https://laravel-vuejs.space/author/anass-ez-zouaine)
- Published: 2026-10-11
- Topics: Laravel, VueJs

People searching “ShouldBroadcast Vue” implement `ShouldBroadcastNow` and then every save waits on the socket. `ShouldBroadcast` implements the queue. The event class, the public channel, and `useEchoPublic` are already in the [Reverb guide](https://laravel-vuejs.space/laravel-reverb-vue). This page is the interface and the worker.

> **TL;DR**
>
> -   ShouldBroadcast queues the event.
> -   ShouldBroadcastNow runs it inside the request.
> -   The Vue listener is the Reverb guide.
> -   Do not listen with `useEcho` on a public channel.
>
> **Who it's for:** Laravel + Vue developers
>
> **Applies to:** Laravel 13 · Vue 3

## The fix

```php
class PostPublished implements ShouldBroadcast
{
    // broadcastOn stays the public Channel from the Reverb guide
}
```

`PostPublished::dispatch($post)` after the row exists. Nothing reaches the browser until a worker is running. Local:

```shell
php artisan queue:listen
```

If the title never appears, check the worker before you rewrite the Vue listener. `ShouldBroadcastNow` is the tool when the event must go out before the response, and you accept the cost. A post save is not that case.

## What to avoid

> **Gotcha**
>
> Do not listen with `useEcho` on a public channel. The Reverb guide shows why that hook asks for a private channel and then misses this event. Do not put the provider key, or the Reverb secret, in the event payload.

## FAQ

**Q: How do I queue a broadcast instead of blocking the save?**

ShouldBroadcast queues the event. ShouldBroadcastNow runs it inside the request. The Vue listener is the Reverb guide.

**Q: What goes wrong with ShouldBroadcast Vue?**

Many developers implement `ShouldBroadcastNow` and then every save waits on the socket. Do not listen with `useEcho` on a public channel.
