Laravel Transactional Events Versions Save

Transaction-aware Event Dispatcher for Laravel

2.3.0

1 month ago
  • Add Laravel 11 support

2.2.0

1 year ago
  • Add Laravel 10 support

2.1.0

2 years ago
  • Add Laravel 9 support
  • Drop PHP 7 support

2.0.1

3 years ago
  • Use Dispatcher contract in constructor

1.8.11

3 years ago
  • Use Dispatcher contract in constructor (#46)

2.0.0

3 years ago
  • Add support for Laravel 8 (see #43)
  • Add the transactional namespaced helper.

1.8.10

3 years ago
  • Added the transactional namespaced helper.

1.8.9

4 years ago
  • 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

4 years ago

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

4 years ago
  • Remove "final" keyword from TransactionalDispatcher class