Skip to content

Releases: lorisleiva/laravel-actions

v0.2.0

05 Aug 16:48
Compare
Choose a tag to compare

⚠️ Middleware registration (breaking changes) In preparation of Laravel 6, the middleware registration changes slightly to follow the same API as the upcoming Job middleware.

// Before.
public function register()
{
    $this->middleware('auth');
}

// After.
public function middleware()
{
    return ['auth'];
}

Actions are now invokable as objects

// When running an action as an object.
$action = new PublishANewArticle([
    'title' => 'My blog post',
    'body' => 'Lorem ipsum.',
]);

// You can now run it like this...
$action();

// Which is equivalent to...
$action->run();

v0.1.4

30 Jul 09:17
ad70300
Compare
Choose a tag to compare

🚑 Fix namespace typo (#16)

v0.1.3

10 Jun 06:55
e9835f6
Compare
Choose a tag to compare

🚑 Fix issue #7 by decorating the existing event dispatcher instead of overriding it with a new instance.

v0.1.2

01 Jun 13:21
Compare
Choose a tag to compare

🚑 Fixes issue #4 by moving rebindings from the register method to the boot method. See this comment for more information on why this was needed.

v0.1.1

26 May 13:11
Compare
Choose a tag to compare

Documentation ready

v0.1.0

19 May 19:20
60e5a3c
Compare
Choose a tag to compare

Package ready but documentation in progress.