DatabaseFailedJobProvider
in package
implements
FailedJobProviderInterface
Interfaces, Classes and Traits
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
$database
The database connection name.
protected
string
$database
$resolver
The connection resolver implementation.
protected
ConnectionResolverInterface
$resolver
$table
The database table.
protected
string
$table
Methods
__construct()
Create a new database failed job provider.
public
__construct(ConnectionResolverInterface $resolver, string $database, string $table) : void
Parameters
- $resolver : ConnectionResolverInterface
- $database : string
- $table : string
Return values
void —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 —flush()
Flush all of the failed jobs from storage.
public
flush() : void
Return values
void —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 —getTable()
Get a new query builder instance for the table.
protected
getTable() : Builder