BroadcastsEventsAfterCommit
trait BroadcastsEventsAfterCommit (View source)
Traits
| BroadcastsEvents |
Methods
| static void | bootBroadcastsEvents()
Boot the event broadcasting trait. | from BroadcastsEvents |
| PendingBroadcast | broadcastCreated(Channel|HasBroadcastChannel|array|null $channels = null)
Broadcast that the model was created. | from BroadcastsEvents |
| PendingBroadcast | broadcastUpdated(Channel|HasBroadcastChannel|array|null $channels = null)
Broadcast that the model was updated. | from BroadcastsEvents |
| PendingBroadcast | broadcastTrashed(Channel|HasBroadcastChannel|array|null $channels = null)
Broadcast that the model was trashed. | from BroadcastsEvents |
| PendingBroadcast | broadcastRestored(Channel|HasBroadcastChannel|array|null $channels = null)
Broadcast that the model was restored. | from BroadcastsEvents |
| PendingBroadcast | broadcastDeleted(Channel|HasBroadcastChannel|array|null $channels = null)
Broadcast that the model was deleted. | from BroadcastsEvents |
| PendingBroadcast|null | broadcastIfBroadcastChannelsExistForEvent(mixed $instance, string $event, mixed $channels = null)
Broadcast the given event instance if channels are configured for the model event. | from BroadcastsEvents |
| mixed | newBroadcastableModelEvent(string $event)
Create a new broadcastable model event event. | from BroadcastsEvents |
| BroadcastableModelEventOccurred | newBroadcastableEvent(string $event)
Create a new broadcastable model event for the model. | from BroadcastsEvents |
| Channel|array | broadcastOn(string $event)
Get the channels that model events should broadcast on. | from BroadcastsEvents |
| string|null | broadcastConnection()
Get the queue connection that should be used to broadcast model events. | from BroadcastsEvents |
| string|null | broadcastQueue()
Get the queue that should be used to broadcast model events. | from BroadcastsEvents |
| bool | broadcastAfterCommit()
Determine if the model event broadcast queued job should be dispatched after all transactions are committed. |
Details
static void bootBroadcastsEvents()
Boot the event broadcasting trait.
PendingBroadcast broadcastCreated(Channel|HasBroadcastChannel|array|null $channels = null)
Broadcast that the model was created.
PendingBroadcast broadcastUpdated(Channel|HasBroadcastChannel|array|null $channels = null)
Broadcast that the model was updated.
PendingBroadcast broadcastTrashed(Channel|HasBroadcastChannel|array|null $channels = null)
Broadcast that the model was trashed.
PendingBroadcast broadcastRestored(Channel|HasBroadcastChannel|array|null $channels = null)
Broadcast that the model was restored.
PendingBroadcast broadcastDeleted(Channel|HasBroadcastChannel|array|null $channels = null)
Broadcast that the model was deleted.
protected PendingBroadcast|null broadcastIfBroadcastChannelsExistForEvent(mixed $instance, string $event, mixed $channels = null)
Broadcast the given event instance if channels are configured for the model event.
mixed newBroadcastableModelEvent(string $event)
Create a new broadcastable model event event.
protected BroadcastableModelEventOccurred newBroadcastableEvent(string $event)
Create a new broadcastable model event for the model.
Channel|array broadcastOn(string $event)
Get the channels that model events should broadcast on.
string|null broadcastConnection()
Get the queue connection that should be used to broadcast model events.
string|null broadcastQueue()
Get the queue that should be used to broadcast model events.
bool broadcastAfterCommit()
Determine if the model event broadcast queued job should be dispatched after all transactions are committed.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/11.x/Illuminate/Database/Eloquent/BroadcastsEventsAfterCommit.html