trait Dispatchable (View source)

Methods

static mixed
dispatch(mixed ...$arguments)

Dispatch the event with the given arguments.

static mixed
dispatchIf(bool $boolean, mixed ...$arguments)

Dispatch the event with the given arguments if the given truth test passes.

static mixed
dispatchUnless(bool $boolean, mixed ...$arguments)

Dispatch the event with the given arguments unless the given truth test passes.

broadcast(mixed ...$arguments)

Broadcast the event with the given arguments.

Details

static mixed dispatch(mixed ...$arguments)

Dispatch the event with the given arguments.

Parameters

mixed ...$arguments

Return Value

mixed

static mixed dispatchIf(bool $boolean, mixed ...$arguments)

Dispatch the event with the given arguments if the given truth test passes.

Parameters

bool $boolean
mixed ...$arguments

Return Value

mixed

static mixed dispatchUnless(bool $boolean, mixed ...$arguments)

Dispatch the event with the given arguments unless the given truth test passes.

Parameters

bool $boolean
mixed ...$arguments

Return Value

mixed

static PendingBroadcast broadcast(mixed ...$arguments)

Broadcast the event with the given arguments.

Parameters

mixed ...$arguments

Return Value

PendingBroadcast