class DatabaseFailedJobProvider implements FailedJobProviderInterface (View source)

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.

string|int|null
log(string $connection, string $queue, string $payload, Exception $exception)

Log a failed job into storage.

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()

Flush all of the failed jobs from storage.

getTable()

Get a new query builder instance for the table.

Details

void __construct(ConnectionResolverInterface $resolver, string $database, string $table)

Create a new database failed job provider.

Parameters

ConnectionResolverInterface $resolver
string $database
string $table

Return Value

void

string|int|null log(string $connection, string $queue, string $payload, Exception $exception)

Log a failed job into storage.

Parameters

string $connection
string $queue
string $payload
Exception $exception

Return Value

string|int|null

array all()

Get a list of all of the failed jobs.

Return Value

array

object|null find(mixed $id)

Get a single failed job.

Parameters

mixed $id

Return Value

object|null

bool forget(mixed $id)

Delete a single failed job from storage.

Parameters

mixed $id

Return Value

bool

void flush()

Flush all of the failed jobs from storage.

Return Value

void

protected Builder getTable()

Get a new query builder instance for the table.

Return Value

Builder

Laravel Cloud is the best place to deploy Laravel, Nuxt, Express, Hono, Node.js, Bun, Go, Flask, Python, and more, with dedicated infrastructure available on AWS through Laravel Private Cloud.