trait Dispatchable (View source)

Methods

static void
dispatch()

Dispatch the event with the given arguments.

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

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

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

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

broadcast()

Broadcast the event with the given arguments.

Details

static void dispatch()

Dispatch the event with the given arguments.

Return Value

void

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

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

Parameters

bool $boolean
...$arguments

Return Value

void

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

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

Parameters

bool $boolean
...$arguments

Return Value

void

static PendingBroadcast broadcast()

Broadcast the event with the given arguments.

Return Value

PendingBroadcast

Laravel Cloud is the best place to deploy Laravel, Nuxt, Express, Hono, Node.js, Bun, Go, Flask, Python, and more, with dedicated infrastructure available on AWS through Laravel Private Cloud.