class Illuminate / Queue / Failed / DatabaseFailedJobProvider
You are viewing an older version of the documentation. For the latest, please visit master documentation.

DatabaseFailedJobProvider

Implements

Properties

protected

$resolver ConnectionResolverInterface

The connection resolver implementation.

Default: null
protected

$database string

The database connection name.

Default: null
protected

$table string

The database table.

Default: null

Methods

public

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

Create a new database failed job provider.

Parameters

public

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

Log a failed job into storage.

Parameters

  • $connection string
  • $queue string
  • $payload string
  • $exception Throwable
public

all ( ) : array

Get a list of all of the failed jobs.

public

find ( $id ) : object|null

Get a single failed job.

Parameters

  • $id mixed
public

forget ( $id ) : bool

Delete a single failed job from storage.

Parameters

  • $id mixed
public

flush ( ) : void

Flush all of the failed jobs from storage.

public

prune ( DateTimeInterface $before ) : int

Prune all of the entries older than the given date.

Parameters

protected

getTable ( ) : Builder

Get a new query builder instance for the table.