Laravel Code Completion Hard +35 XP
Dispatch Job
Complete to dispatch a queued job.
LaravelFill in the blank
ProcessOrder::___( $order);Type the missing code
Show answer and explanation
Answer: dispatch
dispatch() pushes a job onto the queue. The job runs asynchronously via a queue worker, keeping the HTTP response fast.
Hint: Which method sends a job to the queue?
What this challenge tests
Code Completion in Laravel: queues, jobs.