trait Dispatchable (View source)

Methods

static mixed
dispatch()

Dispatch the event with the given arguments.

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

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

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

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

Details

static mixed dispatch()

Dispatch the event with the given arguments.

Return Value

mixed

static void 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

void

static void 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

void