Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Laravel Actions Laravel Package

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.

View on GitHub
Deep Wiki
Context7
v2.10.1

What's Changed

New Contributors

Full Changelog: https://github.com/lorisleiva/laravel-actions/compare/v2.10.0...v2.10.1

v2.10.0

What's Changed

New Contributors

Full Changelog: https://github.com/lorisleiva/laravel-actions/compare/v2.9.1...v2.10.0

v2.9.1

What's Changed

New Contributors

Full Changelog: https://github.com/lorisleiva/laravel-actions/compare/v2.9.0...v2.9.1

v2.8.6
v2.8.5
v2.8.4

What's Changed

New Contributors

Full Changelog: https://github.com/lorisleiva/laravel-actions/compare/v2.8.3...v2.8.4

v2.8.2

What's Changed

New Contributors

Full Changelog: https://github.com/lorisleiva/laravel-actions/compare/v2.8.1...v2.8.2

v2.8.1
v2.7.3

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

v2.7.2

What's Changed

New Contributors

Full Changelog: https://github.com/lorisleiva/laravel-actions/compare/v2.7.1...v2.7.2

v2.7.1

What's Changed

Full Changelog: https://github.com/lorisleiva/laravel-actions/compare/v2.7.0...v2.7.1

v2.7.0

What's Changed

New Contributors

Full Changelog: https://github.com/lorisleiva/laravel-actions/compare/v2.6.0...v2.7.0

v2.6.0
v2.5.1

What's Changed

New Contributors

Full Changelog: https://github.com/lorisleiva/laravel-actions/compare/v2.5.0...v2.5.1

v2.4.1

What's Changed

New Contributors

Full Changelog: https://github.com/lorisleiva/laravel-actions/compare/v2.4.0...v2.4.1

v2.3.0

What's Changed

New Contributors

Full Changelog: https://github.com/lorisleiva/laravel-actions/compare/v2.2.0...v2.3.0

v2.3.0-beta.2
v2.3.0-beta
v2.2.0
  • Install and use the Lody package to register routes and commands. This allows Laravel Actions to be free of maintaining that logic and adds additional perks such as resolving Actions that are not in the App namespace. (See #133 and #143).
  • Drop support for PHP 7.4. Necessary to install Lody.
  • Full Changelog: https://github.com/lorisleiva/laravel-actions/compare/v2.1.5...v2.2.0
v2.1.5

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).

v2.1.4
  • Ensure explicit method routes do not trigger authorisation nor validation. (b4424fc526d7926c7fc307148f11a20716519ff7).
  • Ensure jobs marked as ShouldBeUnique can be tested using the assertPushed helper method (#120).
  • Add Actions::registerCommands($paths) method for auto-registration of commands (#112).
v2.1.3

Support controllers with explicit methods (See #123 and #110).

v2.1.2

Allow UniqueJobDecorator to be prepended in the asJob arguments. (See #95)

v2.1.1
  • Add support for queued listeners (See #87)
  • Fix method signature in docblock (See #89)
  • Use getRealPath instead of getPathname to parse the classname (See #92)
  • Ensure the class exists before trying to register its routes (See #90)
v2.1.0

Add support for optional unified attributes (See #100)

class MyAction
{
    use AsAction;
    use WithAttributes;

    public function handle(array $attributes = [])
    {
        $this->fill($attributes);
        $this->validateAttributes();

        // ...
    }
}
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
enqueue/dsn
bunny/bunny
enqueue/test
enqueue/null
enqueue/amqp-tools
milesj/emojibase
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport