NestedRules
class NestedRules implements CompilableRules (View source)
Properties
protected callable | $callback | The callback to execute. |
Methods
__construct(callable $callback)
Create a new nested rule instance.
Details
__construct(callable $callback)
Create a new nested rule instance.
stdClass
compile(string $attribute, mixed $value, mixed $data = null, mixed $context = null)
Compile the callback into an array of rules.