PHP Class Esensi\Model\Observers\ValidatingModelObserver

See also: Esensi\Model\Traits\ValidatingModelTrait
See also: Watson\Validating\ValidatingObserver
Deprecation: 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
Author: Daniel LaBarge ([email protected])
Inheritance: extends Watson\Validating\ValidatingObserver
Afficher le fichier Open project: esensi/model

Méthodes publiques

Méthode Description
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.

Méthodes protégées

Méthode Description
performValidation ( Model $model, string $event ) : boolean Perform validation with the specified ruleset.

Method Details

creating() public méthode

Register the validation event for creating the model.
public creating ( Model $model ) : boolean
$model Illuminate\Database\Eloquent\Model
Résultat boolean

deleting() public méthode

Register the validation event for deleting the model.
public deleting ( Model $model ) : boolean
$model Illuminate\Database\Eloquent\Model
Résultat boolean

performValidation() protected méthode

Perform validation with the specified ruleset.
protected performValidation ( Model $model, string $event ) : boolean
$model Illuminate\Database\Eloquent\Model
$event string
Résultat boolean

restoring() public méthode

Register the validation event for restoring the model.
public restoring ( Model $model ) : boolean
$model Illuminate\Database\Eloquent\Model
Résultat boolean

saving() public méthode

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
Résultat boolean

updating() public méthode

Register the validation event for updating the model.
public updating ( Model $model ) : boolean
$model Illuminate\Database\Eloquent\Model
Résultat boolean