Documentation

ModelException extends ValidationException
in package

Used when validation fails. Contains the invalid model for easy analysis.

Tags
author

Alexey Bobkov, Samuel Georges

Table of Contents

$errors  : MessageBag
$fields  : array<string|int, mixed>
$model  : Model
__construct()  : mixed
Receives the invalid model and sets the {@link model} and {@link errors} properties.
getErrors()  : MessageBag
Returns directly the message bag instance with the model's errors.
getFields()  : mixed
Returns invalid fields.
getModel()  : Model
Returns the model with invalid attributes.
evalErrors()  : mixed
Evaluate errors.

Properties

Methods

__construct()

Receives the invalid model and sets the {@link model} and {@link errors} properties.

public __construct(Model $model) : mixed
Parameters
$model : Model

The troublesome model.

Return values
mixed

getFields()

Returns invalid fields.

public getFields() : mixed
Return values
mixed

evalErrors()

Evaluate errors.

protected evalErrors() : mixed
Return values
mixed

Search results