Releases: lorisleiva/laravel-actions
Releases · lorisleiva/laravel-actions
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: 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. (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
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();
// ...
}
}
v2.0.7
php artisan make:action
is back (#86)
v2.0.6
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
Ensure the ActionRequest
and therefore the validator refreshes between requests even on validation failure. (2a0a8c5)