trait
Illuminate
/
Foundation
/
Bus
/
Dispatchable
You're browsing the documentation for an upcoming version of Laravel. The documentation and features of this release are subject to change.
Dispatchable
Methods
public
static
dispatch ( $arguments ) : PendingDispatch
Dispatch the job with the given arguments.
Parameters
- $arguments mixed
public
static
dispatchIf ( $boolean , $arguments ) : PendingDispatch |Illuminate\...\Fluent
Dispatch the job with the given arguments if the given truth test passes.
Parameters
- $boolean bool|Closure
- $arguments mixed
public
static
dispatchUnless ( $boolean , $arguments ) : PendingDispatch |Illuminate\...\Fluent
Dispatch the job with the given arguments unless the given truth test passes.
Parameters
- $boolean bool|Closure
- $arguments mixed
public
static
dispatchSync ( $arguments ) : mixed
Dispatch a command to its appropriate handler in the current process.
Parameters
- $arguments mixed
public
static
dispatchAfterResponse ( $arguments ) : mixed
Dispatch a command to its appropriate handler after the current process.
Parameters
- $arguments mixed
public
static
withChain ( $chain ) : PendingChain
Set the jobs that should run if this job is successful.
Parameters
- $chain array