# Laravel: preserve requirements through advanced agent edits - [Dispatch Laravel order jobs only after the transaction commits](https://frameworkrecipes.dev/laravel/after-commit-job/guide.md): A worker can pick up a queued job before the order transaction commits. Deferring dispatch prevents that race and discards dispatch when the transaction rolls back. It still leaves a durability question between committing state and successfully enqueuing a job. - [job-after-commit rule pack](https://reporules.fyi/laravel/after-commit-job/rule-pack.zip): YAML requirement and agent task. - [Use a conditional Laravel update to prevent overselling](https://frameworkrecipes.dev/laravel/atomic-reservation/guide.md): Two requests can both pass a separate availability read. The conditional decrement lets the database decide against the current row when it performs the write. A unique tenant/SKU row and a nonnegative database constraint provide additional enforcement. - [reservation-conditional-write rule pack](https://reporules.fyi/laravel/atomic-reservation/rule-pack.zip): YAML requirement and agent task. - [Framework rule pack](https://reporules.fyi/laravel/rule-pack.zip): All requirements from this framework site.