class Illuminate / Validation / NestedRules
You're browsing the documentation for an upcoming version of Laravel. The documentation and features of this release are subject to change.

NestedRules

Properties

protected

$callback callable

The callback to execute.

Default: null

Methods

public

__construct ( callable $callback ) : void

Create a new nested rule instance.

Parameters

  • $callback callable
public

compile ( $attribute , $value , $data ) : stdClass

Compile the callback into an array of rules.

Parameters

  • $attribute string
  • $value mixed
  • $data mixed