Releases: lorisleiva/laravel-actions
Releases · lorisleiva/laravel-actions
v0.2.0
// 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
v0.1.3
v0.1.2
🚑 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
Documentation ready
v0.1.0
Package ready but documentation in progress.