Release
class Release
Methods
__construct(bool $release = false, int $releaseAfter = 0)
Create a new middleware instance.
static Release
static Release
mixed
handle(mixed $job, callable $next)
Handle the job.
Details
at line 17
__construct(bool $release = false, int $releaseAfter = 0)
Create a new middleware instance.
at line 28
static Release
when(Closure|bool $condition, int $releaseAfter = 0)
Release the job back onto the queue if the given condition is truthy.
at line 38
static Release
unless(Closure|bool $condition, int $releaseAfter = 0)
Release the job back onto the queue unless the given condition is truthy.
at line 46
mixed
handle(mixed $job, callable $next)
Handle the job.