class DatabaseFailedJobProvider implements CountableFailedJobProvider, FailedJobProviderInterface, PrunableFailedJobProvider (View source)
| protected ConnectionResolverInterface | $resolver | The connection resolver implementation. | |
| protected string | $database | The database connection name. | |
| protected string | $table | The database table. |
| void | __construct(ConnectionResolverInterface $resolver, string $database, string $table)
Create a new database failed job provider. | |
| string|int|null | log(string $connection, string $queue, string $payload, Throwable $exception)
Log a failed job into storage. | |
| array | ids(string $queue = null)
Get the IDs of all of the failed jobs. | |
| array | all()
Get a list of all of the failed jobs. | |
| object|null | find(mixed $id)
Get a single failed job. | |
| bool | forget(mixed $id)
Delete a single failed job from storage. | |
| void | flush(int|null $hours = null)
Flush all of the failed jobs from storage. | |
| int | prune(DateTimeInterface $before)
Prune all of the entries older than the given date. | |
| int | count(string|null $connection = null, string|null $queue = null)
Count the failed jobs. | |
| Builder | getTable()
Get a new query builder instance for the table. |
Create a new database failed job provider.
Log a failed job into storage.
Get the IDs of all of the failed jobs.
Get a list of all of the failed jobs.
Get a single failed job.
Delete a single failed job from storage.
Flush all of the failed jobs from storage.
Prune all of the entries older than the given date.
Count the failed jobs.
Get a new query builder instance for the table.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/11.x/Illuminate/Queue/Failed/DatabaseFailedJobProvider.html