trait BroadcastsEventsAfterCommit (View source)
| BroadcastsEvents |
| 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. |
Boot the event broadcasting trait.
Broadcast that the model was created.
Broadcast that the model was updated.
Broadcast that the model was trashed.
Broadcast that the model was restored.
Broadcast that the model was deleted.
Broadcast the given event instance if channels are configured for the model event.
Create a new broadcastable model event event.
Create a new broadcastable model event for the model.
Get the channels that model events should broadcast on.
Get the queue connection that should be used to broadcast model events.
Get the queue that should be used to broadcast model events.
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