Releases: lorisleiva/laravel-actions
Releases · lorisleiva/laravel-actions
v2.0.4
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)
{
// ...
}
v2.0.3
Support batchable jobs.
Bus::batch([
FirstAction::makeJob(1),
SecondAction::makeJob(2),
ThirdAction::makeJob(3),
])->then(function () {
// All jobs completed successfully...
})->dispatch();
v2.0.2
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);
}
v2.0.1
Support more configuration properties and methods from AsJob
.
$jobTries
$jobMaxExceptions
$jobBackoff
$jobTimeout
$jobRetryUntil
getJobBackoff
getJobRetryUntil
v2.0.0
⚡️ 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.
- New to Laravel Actions? Click here to get started.
- Coming from Laravel Actions v1? Check out the upgrade guide.
v1.2.2
v1.2.1
⬆️ Support PHP 8
v1.2.0
v1.1.8
v1.1.7
📝 Ignore console output when the return value is null