Dispatchable
trait Dispatchable (View source)
Methods
Dispatch the job with the given arguments.
Dispatch the job with the given arguments if the given truth test passes.
Dispatch the job with the given arguments unless the given truth test passes.
Dispatch a command to its appropriate handler in the current process.
Dispatch a command to its appropriate handler in the current process.
Dispatch a command to its appropriate handler after the current process.
Set the jobs that should run if this job is successful.
Details
static PendingDispatch
dispatch(...$arguments)
Dispatch the job with the given arguments.
static PendingDispatch|Fluent
dispatchIf(bool $boolean, mixed ...$arguments)
Dispatch the job with the given arguments if the given truth test passes.
static PendingDispatch|Fluent
dispatchUnless(bool $boolean, mixed ...$arguments)
Dispatch the job with the given arguments unless the given truth test passes.
static mixed
dispatchSync(...$arguments)
Dispatch a command to its appropriate handler in the current process.
Queueable jobs will be dispatched to the "sync" queue.
static mixed
dispatchNow(...$arguments)
deprecated
deprecated
Dispatch a command to its appropriate handler in the current process.
static mixed
dispatchAfterResponse(...$arguments)
Dispatch a command to its appropriate handler after the current process.
static PendingChain
withChain(array $chain)
Set the jobs that should run if this job is successful.