NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist
Packagist, #961 most downloaded on Packagist
Laravel components that take care of one specific task
Latest stable
2.13.0
Last release 1 months ago
15 Oct 2026
Release timing varies
gaps range from 8 days to 7 months
Nearly every release is documented
notes for 57 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
8 years old
73 releases · first in 2019
Drag across the ruler to compare, or tap a release to open it.
Add debounced job support to the AsJob trait by @patrickomeara in https://github.com/lorisleiva/laravel-actions/pull/343
Full Changelog: https://github.com/lorisleiva/laravel-actions/compare/v2.12.0...2.13.0
Add root PHPStan configuration at level 5 by @pindab0ter in #347
Full Changelog: v2.11.0...v2.12.0
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Full Changelog: https://github.com/lorisleiva/laravel-actions/compare/v2.11.0...v2.12.0
Add PHPStan extension by @pindab0ter in https://github.com/lorisleiva/laravel-actions/pull/338
Full Changelog: https://github.com/lorisleiva/laravel-actions/compare/v2.10.2...v2.11.0
Fix AsListener not recognized when event implements ShouldDispatchAfterCommit by @vpratfr in https://github.com/lorisleiva/laravel-actions/pull/346
Full Changelog: https://github.com/lorisleiva/laravel-actions/compare/v2.10.1...v2.10.2
Add Laravel Actions documentation for Laravel Boost by @ILDaviz in https://github.com/lorisleiva/laravel-actions/pull/335
Full Changelog: https://github.com/lorisleiva/laravel-actions/compare/v2.10.0...v2.10.1
Add Laravel 13 support and drop Laravel 10 by @abkrim in https://github.com/lorisleiva/laravel-actions/pull/336
Full Changelog: https://github.com/lorisleiva/laravel-actions/compare/v2.9.1...v2.10.0
Initialize $action property and guard hasMethod() by @behzadsp in https://github.com/lorisleiva/laravel-actions/pull/320
Full Changelog: https://github.com/lorisleiva/laravel-actions/compare/v2.9.0...v2.9.1
Support Laravel 12 by @lorisleiva in https://github.com/lorisleiva/laravel-actions/pull/312
Full Changelog: https://github.com/lorisleiva/laravel-actions/compare/v2.8.6...v2.9.0
Fix php8.4 deprecated notices by @it-can in https://github.com/lorisleiva/laravel-actions/pull/305
Full Changelog: https://github.com/lorisleiva/laravel-actions/compare/v2.8.5...v2.8.6
Fixed implicitly nullable parameter by @gbespyatykh in https://github.com/lorisleiva/laravel-actions/pull/298
Full Changelog: https://github.com/lorisleiva/laravel-actions/compare/v2.8.4...v2.8.5
Add a Return Type using PHPDoc to fix IDE Autocomplete by @TaylorWilton in https://github.com/lorisleiva/laravel-actions/pull/292
Full Changelog: https://github.com/lorisleiva/laravel-actions/compare/v2.8.3...v2.8.4
Remove return type for make() by @Casmo in https://github.com/lorisleiva/laravel-actions/pull/287
Full Changelog: https://github.com/lorisleiva/laravel-actions/compare/v2.8.2...v2.8.3
Fix Orchestra Laravel 10 compatibility by @edwinvdpol in https://github.com/lorisleiva/laravel-actions/pull/284
Full Changelog: https://github.com/lorisleiva/laravel-actions/compare/v2.8.1...v2.8.2
Handle $deleteWhenMissingModels on JobDecorator by @patrickomeara in https://github.com/lorisleiva/laravel-actions/pull/283
Full Changelog: https://github.com/lorisleiva/laravel-actions/compare/v2.8.0...v2.8.1
Support Laravel 11 by @patrickomeara in https://github.com/lorisleiva/laravel-actions/pull/273
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).
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
Update ControllerDecorator.php for Laravel 9 and 10 compatibility by @n3storm in https://github.com/lorisleiva/laravel-actions/pull/266
Full Changelog: https://github.com/lorisleiva/laravel-actions/compare/v2.7.1...v2.7.2
Added docBlock annotations to assist with IDE auto complete for Actions by @travisaustin in https://github.com/lorisleiva/laravel-actions/pull/252
Full Changelog: https://github.com/lorisleiva/laravel-actions/compare/v2.7.0...v2.7.1
Add support for listener shouldQueue method by @dmason30 in https://github.com/lorisleiva/laravel-actions/pull/247
Full Changelog: https://github.com/lorisleiva/laravel-actions/compare/v2.6.0...v2.7.0
Drop support for Laravel 8 by @lorisleiva in https://github.com/lorisleiva/laravel-actions/pull/238
Full Changelog: https://github.com/lorisleiva/laravel-actions/compare/v2.5.1...v2.6.0
Fix CI by updating validation error expectations by @lorisleiva in https://github.com/lorisleiva/laravel-actions/pull/226
Full Changelog: https://github.com/lorisleiva/laravel-actions/compare/v2.5.0...v2.5.1
Laravel 10.x Compatibility by @laravel-shift in https://github.com/lorisleiva/laravel-actions/pull/219
Full Changelog: https://github.com/lorisleiva/laravel-actions/compare/v2.4.3...v2.5.0
Implement option to get a validated input using key by @istiak-tridip in https://github.com/lorisleiva/laravel-actions/pull/213
Full Changelog: https://github.com/lorisleiva/laravel-actions/compare/v2.4.2...v2.4.3
Fix BC in Laravel 9.38 by @lorisleiva in https://github.com/lorisleiva/laravel-actions/pull/208
Full Changelog: https://github.com/lorisleiva/laravel-actions/compare/v2.4.1...v2.4.2
Fix typos by @devnll in https://github.com/lorisleiva/laravel-actions/pull/195
Full Changelog: https://github.com/lorisleiva/laravel-actions/compare/v2.4.0...v2.4.1
Conditional Object runs added by @Wulfheart in https://github.com/lorisleiva/laravel-actions/pull/174
Full Changelog: https://github.com/lorisleiva/laravel-actions/compare/v2.3.0...v2.4.0
Allow for matching tests to be created on make:action by @cyrillkalita in https://github.com/lorisleiva/laravel-actions/pull/154
Full Changelog: https://github.com/lorisleiva/laravel-actions/compare/v2.2.0...v2.3.0
Nothing published for this version
Nothing published for this version
Install and use the [Lody](https://github.com/lorisleiva/lody) package to register routes and commands. This allows Laravel Actions to be free of main
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 (requir
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).
Ensure explicit method routes do not trigger authorisation nor validation. (b4424fc526d7926c7fc307148f11a20716519ff7).
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).
Support controllers with explicit methods (See #123 and #110).
Allow UniqueJobDecorator to be prepended in the asJob arguments. (See #95)
Allow UniqueJobDecorator to be prepended in the asJob arguments. (See #95)
Add support for queued listeners (See #87)
Add support for optional unified attributes (See #100)
Add support for optional unified attributes (See #100)
class MyAction
{
use AsAction;
use WithAttributes;
public function handle(array $attributes = [])
{
$this->fill($attributes);
$this->validateAttributes();
// ...
}
}
php artisan make:action is back
php artisan make:action is back (#86)
Fix a bug that did not clear fake instances when running multiple tests within the same application instance.
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 5136c3e8828effe08de56d317aca8dce8ea9bb2f).
Ensure the ActionRequest and therefore the validator refreshes between requests even on validation failure.
Ensure the ActionRequest and therefore the validator refreshes between requests even on validation failure. (2a0a8c59f43b4afb77c10d29cb3da4025e29651f)
Support injecting (optionally) a Batch or JobDecorator as the first argument of the asJob method.
Support injecting (optionally) a Batch or JobDecorator as the first argument of the asJob method.
// Without injecting.
public function asJob($foo, $bar)
{
// ...
}
// Injecting the batch.
public function asJob(?Batch $batch, $foo, $bar)
{
// ...
}
// Injecting the decorator.
public function asJob(JobDecorator $job, $foo, $bar)
{
// ...
}
`php Bus::batch([ FirstAction::makeJob(1), SecondAction::makeJob(2), ThirdAction::makeJob(3), ])->then(function () { // All jobs completed successfull
Support batchable jobs.
Bus::batch([
FirstAction::makeJob(1),
SecondAction::makeJob(2),
ThirdAction::makeJob(3),
])->then(function () {
// All jobs completed successfully...
})->dispatch();
Support registering actions as commands in the scheduler.
Support registering actions as commands in the scheduler.
$scheduler->command(MyAction::class)->daily();
Add setters on the JobDecorators to set more properties using the configureJob method.
public function configureJob(JobDecorator $job): void
{
$job->setTries(10)
->setMaxExceptions(3)
->setTimeout(60 * 30);
}
Support more configuration properties and methods from AsJob.
Support more configuration properties and methods from AsJob.
$jobTries$jobMaxExceptions$jobBackoff$jobTimeout$jobRetryUntilgetJobBackoffgetJobRetryUntil⚡️ Laravel Actions has been re-written from scratch and provides a much simpler, less intrusive API allowing you to run any PHP class as anything you
⚡️ Laravel Actions has been re-written from scratch and provides a much simpler, less intrusive API allowing you to run any PHP class as anything you want.
Use stubs to generate Actions through the make command
Use stubs to generate Actions through the make command (#78)
Nothing published for this version
⚙️ Ensure Models and Collections are serialized correctly within attributes when running an action as a Job. (See #68)
⚙️ Ensure Models and Collections are serialized correctly within attributes when running an action as a Job. (See #68)
🚑 Fix getAttributesFromConstructor method when running as a controller
🚑 Fix getAttributesFromConstructor method when running as a controller (cfcfc3d38d18399edbaaf7a873f759cd318d8f74)
📝 Ignore console output when the return value is null
📝 Ignore console output when the return value is null
🔭 Add optional HasTelescopeTags trait
🔭 Add optional HasTelescopeTags trait (#53)
🚑 Fixes ignored default values in handle method
🚑 Fixes ignored default values in handle method (#66)
Nothing published for this version
Nothing published for this version
📝 Use expectsJson instead of wantsJson to determine if we should use jsonResponse for Actions as controllers.
📝 Use expectsJson instead of wantsJson to determine if we should use jsonResponse for Actions as controllers.
🖼 Fix paths on Windows
🖼 Fix paths on Windows (https://github.com/lorisleiva/laravel-actions/commit/667fe744ad7b2c724535d0797026424636c45456)
This release slightly adjusts the dependency injection logic by supporting nullable typehints. Let's go through a few examples to understand what that
This release slightly adjusts the dependency injection logic by supporting nullable typehints. Let's go through a few examples to understand what that really means.
Assuming $service is not an attribute of this action, prior to this version, it would have resolved the MyInjectedService class from the container even though it's an optional typehint (notice the ? prefix). Now, it will not even try to resolve it from the container. This mechanism can be helpful to turn dependency injection off for certain arguments.
class MyAction extends Action
{
public function handle(?MyInjectedService $service)
{
// ...
}
};
The reason behind this change is to make sure Laravel Actions does not try to become too intrusive when resolving the arguments of your methods.
Consider the example below where the User model is typehinted but marked as nullable. Prior to this version, Laravel Actions would have thrown an exception if the provided user identifier did not successfully retrieve a user from the database. Now, it will return null instead of throwing an exception if the user cannot be found via the provided identifier.
class MyAction extends Action
{
public function handle(?User $user)
{
// if $user is "1" and User::find(1) exists, it returns the fetched model.
// if $user is "42" and User::find(42) does not exist, it returns null instead of throwing an exception
// if $user is null, it returns null instead of throwing an exception
}
};
The reason behind this change is to allow a more flexible route model binding.
Whilst these changes can break some existing code (hence the jump to 1.1) it is very unlikely that it will. Chances are, if you were marking a typehint as nullable before, you were already planning for that argument to be null.
If the controllerMiddleware is not provided, it falls back to using middleware to avoid breaking changes.
📝 Add controllerMiddleware method to avoid conflicts with job middleware. If the controllerMiddleware is not provided, it falls back to using middleware to avoid breaking changes.
🤝 Add support for custom implicit route bindings (e.g. /articles/{article:slug}) and nested route bindings (e.g. /users/{users}/articles/{article:slug
🤝 Add support for custom implicit route bindings (e.g. /articles/{article:slug}) and nested route bindings (e.g. /users/{users}/articles/{article:slug}) for Laravel 7 only (see Laravel documentation).
Make handle method optional. This allows for actions acting as pure authorisation or validation guards as well as actions that simply need a response
Make handle method optional. This allows for actions acting as pure authorisation or validation guards as well as actions that simply need a response method to render some view. (See #39)
Adjust PHPStorm annotations to allow for custom getAttributeFromConstructor logic.
Adjust PHPStorm annotations to allow for custom getAttributeFromConstructor logic.
One column per quarter.