class PendingBroadcast

Methods

__construct(Dispatcher $eventDispatcher, mixed $event)

Create a new pending broadcast instance.

via(UnitEnum|string|null $connection = null)

Broadcast the event using a specific broadcaster.

toOthers()

Broadcast the event to everyone except the current user.

__destruct()

Handle the object's destruction.

Details

at line 17
__construct(Dispatcher $eventDispatcher, mixed $event)

Create a new pending broadcast instance.

Parameters

Dispatcher $eventDispatcher
mixed $event

at line 26
PendingBroadcast via(UnitEnum|string|null $connection = null)

Broadcast the event using a specific broadcaster.

Parameters

UnitEnum|string|null $connection

Return Value

PendingBroadcast

at line 40
PendingBroadcast toOthers()

Broadcast the event to everyone except the current user.

Return Value

PendingBroadcast

at line 52
__destruct()

Handle the object's destruction.