model.beforeValidate
Called before the model is validated
Example usage:
$model->bindEvent('model.beforeValidate', function () use (\Winter\Storm\Database\Model $model) { // Prevent anything from validating ever! return false; });
Usage
Triggers
Class or file | Line |
---|---|
Winter\Storm\Database\Traits\Validation
|
82 |
Copyright © 2024 Winter CMS