spatie / laravel-medialibrary

Associate files with Eloquent models
https://spatie.be/docs/laravel-medialibrary
MIT License
5.78k stars 1.08k forks source link

Added config variable to disable dispatching jobs after commit #3698

Closed chrispage1 closed 3 months ago

chrispage1 commented 3 months ago

There are some use cases where the PR #3687 that ensures jobs are dispatched after database transactions may cause undesirable behaviour, particularly in tests which are run within a database transaction for example.

This PR introduces a new configuration variable, which allows disabling this behaviour.

freekmurze commented 3 months ago

Thanks!