class NestedRules implements CompilableRules (View source)

Properties

protected callable $callback

The callback to execute.

Methods

__construct(callable $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

__construct(callable $callback)

Create a new nested rule instance.

Parameters

callable $callback

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

Laravel Cloud is the best place to deploy Laravel, Nuxt, Express, Hono, Node.js, Bun, Go, Flask, Python, and more, with dedicated infrastructure available on AWS through Laravel Private Cloud.