lorisleiva / laravel-actions

⚡️ Laravel components that take care of one specific task
https://laravelactions.com
MIT License
2.52k stars 125 forks source link

Conditional Object runs added #174

Closed Wulfheart closed 2 years ago

Wulfheart commented 2 years ago

This refers to #173 and adds the methods SomeAction::runIf($boolean) and SomeAction::runUnless($boolean). There are also some tests. The implementation is analogous to the AsJob trait.

As these changes are backward compatible I think it warrants only a minor version bump.

lorisleiva commented 2 years ago

That's perfect, thanks! I'll spend a bit of time trying to close some issues today and I'll tag a new version afterwards. 🍺