Skip to content

Releases: lorisleiva/laravel-actions

v2.2.0

11 Nov 17:07
22313b5
Compare
Choose a tag to compare
  • 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: v2.1.5...v2.2.0

v2.1.5

17 Jun 19:18
4df9827
Compare
Choose a tag to compare

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

17 Jun 18:34
Compare
Choose a tag to compare
  • Ensure explicit method routes do not trigger authorisation nor validation. (b4424fc).
  • 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

17 Jun 14:25
cc2666c
Compare
Choose a tag to compare

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

v2.1.2

30 Mar 17:57
277d901
Compare
Choose a tag to compare

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

v2.1.1

30 Mar 17:37
9e7e4e7
Compare
Choose a tag to compare
  • 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

30 Mar 14:46
bd3ded4
Compare
Choose a tag to compare

Add support for optional unified attributes (See #100)

class MyAction
{
    use AsAction;
    use WithAttributes;

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

        // ...
    }
}

v2.0.7

30 Jan 23:32
Compare
Choose a tag to compare

php artisan make:action is back (#86)

v2.0.6

16 Jan 00:09
5136c3e
Compare
Choose a tag to compare

Fix a bug that did not clear fake instances when running multiple tests within the same application instance.

Instead of storing the fake instance as a static property on the action class, it is now stored as a prefixed container instance and so they are automatically cleared between each tests (See 5136c3e).

v2.0.5

12 Jan 18:51
2a0a8c5
Compare
Choose a tag to compare

Ensure the ActionRequest and therefore the validator refreshes between requests even on validation failure. (2a0a8c5)