Esensi\Model\Observers\ValidatingModelObserver::updating PHP Method

updating() public method

Register the validation event for updating the model.
public updating ( Model $model ) : boolean
$model Illuminate\Database\Eloquent\Model
return boolean
    public function updating(Model $model)
    {
        if ($model->getRuleset('updating')) {
            return $this->performValidation($model, 'updating');
        }
    }