PHP Класс Esensi\Model\Observers\ValidatingModelObserver

См. также: Esensi\Model\Traits\ValidatingModelTrait
См. также: Watson\Validating\ValidatingObserver
Устаревший: In watson/[email protected] the custom methods used below were deprecated in favor of Laravel 5's form request validation classes. Stop using rulesets right now as they will be removed
Автор: Daniel LaBarge ([email protected])
Наследование: extends Watson\Validating\ValidatingObserver
Показать файл Открыть проект

Открытые методы

Метод Описание
creating ( Model $model ) : boolean Register the validation event for creating the model.
deleting ( Model $model ) : boolean Register the validation event for deleting the model.
restoring ( Model $model ) : boolean Register the validation event for restoring the model.
saving ( Model $model ) : boolean Register the validation event for saving the model. Saving validation should only occur if creating and updating validation does not.
updating ( Model $model ) : boolean Register the validation event for updating the model.

Защищенные методы

Метод Описание
performValidation ( Model $model, string $event ) : boolean Perform validation with the specified ruleset.

Описание методов

creating() публичный Метод

Register the validation event for creating the model.
public creating ( Model $model ) : boolean
$model Illuminate\Database\Eloquent\Model
Результат boolean

deleting() публичный Метод

Register the validation event for deleting the model.
public deleting ( Model $model ) : boolean
$model Illuminate\Database\Eloquent\Model
Результат boolean

performValidation() защищенный Метод

Perform validation with the specified ruleset.
protected performValidation ( Model $model, string $event ) : boolean
$model Illuminate\Database\Eloquent\Model
$event string
Результат boolean

restoring() публичный Метод

Register the validation event for restoring the model.
public restoring ( Model $model ) : boolean
$model Illuminate\Database\Eloquent\Model
Результат boolean

saving() публичный Метод

Register the validation event for saving the model. Saving validation should only occur if creating and updating validation does not.
public saving ( Model $model ) : boolean
$model Illuminate\Database\Eloquent\Model
Результат boolean

updating() публичный Метод

Register the validation event for updating the model.
public updating ( Model $model ) : boolean
$model Illuminate\Database\Eloquent\Model
Результат boolean