On this page
Dispatchable
trait Dispatchable (View source)
Methods
static PendingDispatch | dispatch(mixed ...$arguments) Dispatch the job with the given arguments. |
|
static PendingDispatch|Fluent | dispatchIf(bool|Closure $boolean, mixed ...$arguments) Dispatch the job with the given arguments if the given truth test passes. |
|
static PendingDispatch|Fluent | dispatchUnless(bool|Closure $boolean, mixed ...$arguments) Dispatch the job with the given arguments unless the given truth test passes. |
|
static mixed | dispatchSync(mixed ...$arguments) Dispatch a command to its appropriate handler in the current process. |
|
static mixed | dispatchAfterResponse(mixed ...$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. |
Details
static PendingDispatch dispatch(mixed ...$arguments)
Dispatch the job with the given arguments.
static PendingDispatch|Fluent dispatchIf(bool|Closure $boolean, mixed ...$arguments)
Dispatch the job with the given arguments if the given truth test passes.
static PendingDispatch|Fluent dispatchUnless(bool|Closure $boolean, mixed ...$arguments)
Dispatch the job with the given arguments unless the given truth test passes.
static mixed dispatchSync(mixed ...$arguments)
Dispatch a command to its appropriate handler in the current process.
Queueable jobs will be dispatched to the "sync" queue.
static mixed dispatchAfterResponse(mixed ...$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.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/10.x/Illuminate/Foundation/Bus/Dispatchable.html