Skip to content

Releases: fntneves/laravel-transactional-events

2.3.0

19 Mar 22:12
5d283f5
Compare
Choose a tag to compare
  • Add Laravel 11 support

2.2.0

01 Mar 11:54
b5e3d14
Compare
Choose a tag to compare
  • Add Laravel 10 support

2.1.0

14 Jan 18:05
Compare
Choose a tag to compare
  • Add Laravel 9 support
  • Drop PHP 7 support

2.0.1

13 Oct 12:28
2.0.1
Compare
Choose a tag to compare
  • Use Dispatcher contract in constructor

1.8.11

13 Oct 12:28
1.8.11
86627e5
Compare
Choose a tag to compare
  • Use Dispatcher contract in constructor (#46)

2.0.0

08 Sep 22:43
2.0.0
Compare
Choose a tag to compare
  • Add support for Laravel 8 (see #43)
  • Add the transactional namespaced helper.

1.8.10

08 Sep 14:22
1.8.10
Compare
Choose a tag to compare
  • Added the transactional namespaced helper.

1.8.9

15 Apr 17:08
1.8.9
Compare
Choose a tag to compare
  • Removed the transactional helper. See #39

Alternatively, use TransactionalClosureEvent directly.

Event::dispatch(new TransactionalClosureEvent(function () {
    // Job will be dispatched only if the transaction commits. 
    ProcessOrderShippingJob::dispatch($order);
});

1.8.8

15 Apr 12:44
1.8.8
Compare
Choose a tag to compare

What's new?

This version includes the transactional helper to bring transactional behavior to custom instructions.

It is particularly useful for dispatching jobs:

transactional(function () {
    ProcessPodcast::dispatch($podcast);
});

1.8.7

31 Mar 13:23
1.8.7
19b8855
Compare
Choose a tag to compare
  • Remove "final" keyword from TransactionalDispatcher class