Queues & Jobs in PHP

From the Laravel cheat sheet · Advanced Features · verified Jul 2026

Queues & Jobs

Background job processing

php
// Create job
php artisan make:job ProcessPayment

// Dispatch job
ProcessPayment::dispatch($order);
ProcessPayment::dispatch($order)->delay(now()->addMinutes(10));

// Job class
class ProcessPayment implements ShouldQueue
{
    use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;

    public function handle()
    {
        // Process payment
    }
}
💡 Use queues for time-consuming tasks to improve response time
⚡ Horizon provides beautiful dashboard for Redis queues
📌 Chain jobs for sequential processing
🔥 Use Supervisor to keep queue workers running

More PHP tasks

Back to the full Laravel cheat sheet