class NestedRules implements CompilableRules

Methods

__construct(Closure $callback)

Create a new nested rule instance.

compile(string $attribute, mixed $value, mixed $data = null, mixed $context = null)

Compile the callback into an array of rules.

Details

at line 18
__construct(Closure $callback)

Create a new nested rule instance.

Parameters

Closure $callback

the callback to execute

at line 26
stdClass compile(string $attribute, mixed $value, mixed $data = null, mixed $context = null)

Compile the callback into an array of rules.

Parameters

string $attribute
mixed $value
mixed $data
mixed $context

Return Value

stdClass