class Skip

Methods

__construct(bool $skip = false)

No description

static Skip
when(bool|Closure $condition)

Apply the middleware if the given condition is truthy.

static Skip
unless(bool|Closure $condition)

Apply the middleware unless the given condition is truthy.

mixed
handle(mixed $job, callable $next)

Handle the job.

Details

at line 13
__construct(bool $skip = false)

No description

Parameters

bool $skip

at line 20
static Skip when(bool|Closure $condition)

Apply the middleware if the given condition is truthy.

Parameters

bool|Closure $condition

Return Value

Skip

at line 28
static Skip unless(bool|Closure $condition)

Apply the middleware unless the given condition is truthy.

Parameters

bool|Closure $condition

Return Value

Skip

at line 36
mixed handle(mixed $job, callable $next)

Handle the job.

Parameters

mixed $job
callable $next

Return Value

mixed