class Illuminate / Validation / NestedRules

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