DatabaseFailedJobProvider
class DatabaseFailedJobProvider implements FailedJobProviderInterface
Properties
protected ConnectionResolverInterface | $resolver | The connection resolver implementation. |
|
protected string | $database | The database connection name. |
|
protected string | $table | The database table. |
Methods
void
__construct(ConnectionResolverInterface $resolver, string $database, string $table)
Create a new database failed job provider.
int|null
array
all()
Get a list of all of the failed jobs.
array
find(mixed $id)
Get a single failed job.
bool
forget(mixed $id)
Delete a single failed job from storage.
void
flush()
Flush all of the failed jobs from storage.
Details
at line 39
void
__construct(ConnectionResolverInterface $resolver, string $database, string $table)
Create a new database failed job provider.
at line 55
int|null
log(string $connection, string $queue, string $payload, Exception $exception)
Log a failed job into storage.
at line 71
array
all()
Get a list of all of the failed jobs.
at line 82
array
find(mixed $id)
Get a single failed job.
at line 93
bool
forget(mixed $id)
Delete a single failed job from storage.
at line 103
void
flush()
Flush all of the failed jobs from storage.
at line 113
protected Builder
getTable()
Get a new query builder instance for the table.