class Illuminate / Broadcasting / PendingBroadcast
You are viewing an older version of the documentation. For the latest, please visit master documentation.

PendingBroadcast

Properties

protected

$events Dispatcher

The event dispatcher implementation.

Default: null
protected

$event mixed

The event instance.

Default: null

Methods

public

__construct ( Dispatcher $events , $event ) : void

Create a new pending broadcast instance.

Parameters

public

via ( $connection ) : $this

Broadcast the event using a specific broadcaster.

Parameters

  • $connection string|null
public

toOthers ( ) : $this

Broadcast the event to everyone except the current user.

public

__destruct ( ) : void

Handle the object's destruction.