class Skip

Methods

__construct(bool $skip = false)

Create a new middleware instance.

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 18
__construct(bool $skip = false)

Create a new middleware instance.

Parameters

bool $skip

whether the job should be skipped

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

Apply the middleware if the given condition is truthy.

Parameters

bool|Closure $condition

Return Value

Skip

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

Apply the middleware unless the given condition is truthy.

Parameters

bool|Closure $condition

Return Value

Skip

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

Handle the job.

Parameters

mixed $job
callable $next

Return Value

mixed