laravel/ideas

afterCommit on Queueable Anonymous Event Listeners

vaawebdev opened this issue · 0 comments

While Event Handlers support afterCommit option https://laravel.com/docs/8.x/events#queuable-anonymous-event-listeners, Anonymous Event Listeners https://laravel.com/docs/8.x/events#queuable-anonymous-event-listeners do not. Please add some way to configure that option like following for example:

Event::listen(queueable(function (PodcastProcessed $event) {
    //
})->afterCommit());