CallQueuedHandler
class CallQueuedHandler (View source)
Properties
| protected Dispatcher | $dispatcher | The bus dispatcher implementation. |
|
| protected Container | $container | The container instance. |
Methods
Dispatch the given job / command through its specified middleware.
Set the job instance of the given class if necessary.
Ensure the next job in the chain is dispatched if applicable.
Details
void
__construct(Dispatcher $dispatcher, Container $container)
Create a new handler instance.
void
call(Job $job, array $data)
Handle the queued job.
protected mixed
dispatchThroughMiddleware(Job $job, mixed $command)
Dispatch the given job / command through its specified middleware.
protected mixed
resolveHandler(Job $job, mixed $command)
Resolve the handler for the given command.
protected mixed
setJobInstanceIfNecessary(Job $job, mixed $instance)
Set the job instance of the given class if necessary.
protected void
ensureNextJobInChainIsDispatched(mixed $command)
Ensure the next job in the chain is dispatched if applicable.
void
failed(array $data, Exception $e)
Call the failed method on the job instance.
The exception that caused the failure will be passed.
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.