2.1.0
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 fromlorisleiva/laravel-actions
. - Standardized
handle()
Method: The main action logic is now defined in thehandle()
method instead ofexecute()
, allowing seamless use in different contexts and aligning with Laravel's conventions.
Upgrade Notes
- Migration from
execute()
tohandle()
:- If you previously used the
execute()
method to run actions, update your code to use thehandle()
method. This change aligns with Laravel conventions and thelorisleiva/laravel-actions
integration.
- If you previously used the
Installation and Testing
To upgrade, update the package using Composer:
composer update cleaniquecoders/laravel-action
Run the tests with:
composer test