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
파일 보기 프로젝트 열기: esensi/model

공개 메소드들

메소드 설명
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