Skip to content

2.1.0

Compare
Choose a tag to compare
@nasrulhazim nasrulhazim released this 31 Oct 17:55
· 24 commits to main since this release

Release Notes for Version 2.1.0

Full Changelog: 2.0.0...2.1.0

Overview

Version 2.1.0 introduces improved flexibility and power to the Laravel Actionable package. By integrating the lorisleiva/laravel-actions package, this release allows actions to be used in various execution contexts.

Key Changes

Integration with lorisleiva/laravel-actions

  • Multi-Context Execution: Actions can now be used as controllers, jobs, or event listeners, thanks to the AsAction trait from lorisleiva/laravel-actions.
  • Standardized handle() Method: The main action logic is now defined in the handle() method instead of execute(), allowing seamless use in different contexts and aligning with Laravel's conventions.

Upgrade Notes

  • Migration from execute() to handle():
    • If you previously used the execute() method to run actions, update your code to use the handle() method. This change aligns with Laravel conventions and the lorisleiva/laravel-actions integration.

Installation and Testing

To upgrade, update the package using Composer:

composer update cleaniquecoders/laravel-action

Run the tests with:

composer test