interface Validator implements MessageProvider (View source)

Methods

getMessageBag()

Get the messages for the instance.

bool
fails()

Determine if the data fails the validation rules.

array
failed()

Get the failed validation rules.

void
sometimes( string $attribute, string|array $rules, callable $callback)

Add conditions to a given field based on a Closure.

$this
after( callable|string $callback)

After an after validation callback.

Details

MessageBag getMessageBag()

Get the messages for the instance.

Return Value

MessageBag

at line line 14
bool fails()

Determine if the data fails the validation rules.

Return Value

bool

at line line 21
array failed()

Get the failed validation rules.

Return Value

array

at line line 31
void sometimes( string $attribute, string|array $rules, callable $callback)

Add conditions to a given field based on a Closure.

Parameters

string $attribute
string|array $rules
callable $callback

Return Value

void

at line line 39
$this after( callable|string $callback)

After an after validation callback.

Parameters

callable|string $callback

Return Value

$this