TIL you can add middleware to jobs in Laravel. A super useful example: the WithoutOverlapping middleware, which you can use to specify that a job should not be ran simultaneously on multiple queue workers.
Docs: laravel.com/docs/11.x/queues#preventing-job-overlaps
Back