title: Stop Laravel jobs if batch cancelled
body: <p>I'm using a batch of jobs in my Laravel 8.28.1 application. The QUEUE_CONNECTION is database.
  The problem is that once a job of the batch fails, the worker continues processing the remaining jobs, which in this use case is unnecessary and resource consuming. In this scenario, the batch record is marked cancelled (cancelled_at, finished_at both have values) and the <em>failedJobs</em> property works fine to discover that there were issues, but the worker still processes the remaining jobs of that batch.
  By the way, I am not using <em>allowFailures()</em> option when dispatching the batch.</p>
  <p>Some suggestions?</p>