Stop
class Stop
Properties
| protected SerializableClosure|bool | $condition | The stop condition, wrapped when it is a closure so queued agents and listeners can serialize the middleware. |
Methods
Details
at line 24
__construct(Closure|bool $condition)
Create a new stop middleware instance.
at line 34
static Stop
when(Closure|bool $condition)
Stop the run before any step for which the given condition holds.
at line 44
static Stop
unless(Closure|bool $condition)
Stop the run before any step for which the given condition fails.
at line 54
StepResult
handle(PendingStep $step, Closure $next)
Handle the pending step.