Documentation

DatabaseFailedJobProvider
in package
implements FailedJobProviderInterface

Interfaces, Classes and Traits

FailedJobProviderInterface

Table of Contents

$database  : string
The database connection name.
$resolver  : ConnectionResolverInterface
The connection resolver implementation.
$table  : string
The database table.
__construct()  : void
Create a new database failed job provider.
all()  : array<string|int, mixed>
Get a list of all of the failed jobs.
find()  : object|null
Get a single failed job.
flush()  : void
Flush all of the failed jobs from storage.
forget()  : bool
Delete a single failed job from storage.
log()  : int|null
Log a failed job into storage.
getTable()  : Builder
Get a new query builder instance for the table.

Properties

Methods

all()

Get a list of all of the failed jobs.

public all() : array<string|int, mixed>
Return values
array<string|int, mixed>

find()

Get a single failed job.

public find(mixed $id) : object|null
Parameters
$id : mixed
Return values
object|null

forget()

Delete a single failed job from storage.

public forget(mixed $id) : bool
Parameters
$id : mixed
Return values
bool

log()

Log a failed job into storage.

public log(string $connection, string $queue, string $payload, Exception $exception) : int|null
Parameters
$connection : string
$queue : string
$payload : string
$exception : Exception
Return values
int|null

Search results