trait Batchable (View source)
| string | $batchId | The batch ID (if applicable). |
| Batch|null | batch()
Get the batch instance for the job, if applicable. | |
| bool | batching()
Determine if the batch is still active and processing. | |
| $this | withBatchId(string $batchId)
Set the batch ID on the job. | |
| withFakeBatch(string $id = '', string $name = '', int $totalJobs = 0, int $pendingJobs = 0, int $failedJobs = 0, array $failedJobIds = [], array $options = [], CarbonImmutable|null $createdAt = null, CarbonImmutable|null $cancelledAt = null, CarbonImmutable|null $finishedAt = null)
Indicate that the job should use a fake batch. |
Get the batch instance for the job, if applicable.
Determine if the batch is still active and processing.
Set the batch ID on the job.
Indicate that the job should use a fake batch.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/11.x/Illuminate/Bus/Batchable.html