lorisleiva/laravel-actions
Organize app logic into single-purpose “Action” classes that can run as controllers, jobs, listeners, commands, and more. Define a handle method for the core task, then add asController/asJob/etc wrappers to reuse the same logic across contexts.
Full Changelog: https://github.com/lorisleiva/laravel-actions/compare/v2.10.0...v2.10.1
Full Changelog: https://github.com/lorisleiva/laravel-actions/compare/v2.9.1...v2.10.0
Full Changelog: https://github.com/lorisleiva/laravel-actions/compare/v2.9.0...v2.9.1
Full Changelog: https://github.com/lorisleiva/laravel-actions/compare/v2.8.6...v2.9.0
Full Changelog: https://github.com/lorisleiva/laravel-actions/compare/v2.8.5...v2.8.6
Full Changelog: https://github.com/lorisleiva/laravel-actions/compare/v2.8.4...v2.8.5
Full Changelog: https://github.com/lorisleiva/laravel-actions/compare/v2.8.3...v2.8.4
Full Changelog: https://github.com/lorisleiva/laravel-actions/compare/v2.8.2...v2.8.3
Full Changelog: https://github.com/lorisleiva/laravel-actions/compare/v2.8.1...v2.8.2
Full Changelog: https://github.com/lorisleiva/laravel-actions/compare/v2.8.0...v2.8.1
Full Changelog: https://github.com/lorisleiva/laravel-actions/compare/v2.7.3...v2.8.0
Revert previous release as it introduced a breaking change in Inertia applications (see #267).
Full Changelog: https://github.com/lorisleiva/laravel-actions/compare/v2.7.2...v2.7.3
Full Changelog: https://github.com/lorisleiva/laravel-actions/compare/v2.7.1...v2.7.2
Full Changelog: https://github.com/lorisleiva/laravel-actions/compare/v2.7.0...v2.7.1
Full Changelog: https://github.com/lorisleiva/laravel-actions/compare/v2.6.0...v2.7.0
Full Changelog: https://github.com/lorisleiva/laravel-actions/compare/v2.5.1...v2.6.0
Full Changelog: https://github.com/lorisleiva/laravel-actions/compare/v2.5.0...v2.5.1
Full Changelog: https://github.com/lorisleiva/laravel-actions/compare/v2.4.3...v2.5.0
Full Changelog: https://github.com/lorisleiva/laravel-actions/compare/v2.4.2...v2.4.3
Full Changelog: https://github.com/lorisleiva/laravel-actions/compare/v2.4.1...v2.4.2
Full Changelog: https://github.com/lorisleiva/laravel-actions/compare/v2.4.0...v2.4.1
Full Changelog: https://github.com/lorisleiva/laravel-actions/compare/v2.3.0...v2.4.0
Full Changelog: https://github.com/lorisleiva/laravel-actions/compare/v2.2.0...v2.3.0
App namespace. (See #133 and #143).Make Laravel Actions ready for Octane by always accessing the container and the request on demand rather than storing them as class properties (requires manual testing to ensure it works properly).
ShouldBeUnique can be tested using the assertPushed helper method (#120).Actions::registerCommands($paths) method for auto-registration of commands (#112).Support controllers with explicit methods (See #123 and #110).
Allow UniqueJobDecorator to be prepended in the asJob arguments. (See #95)
Add support for optional unified attributes (See #100)
class MyAction
{
use AsAction;
use WithAttributes;
public function handle(array $attributes = [])
{
$this->fill($attributes);
$this->validateAttributes();
// ...
}
}
How can I help you explore Laravel packages today?