model.saveInternal

Called before the model is saved

Note: also triggered in Winter\Storm\Halcyon\Model

Example usage:

$model->bindEvent('model.saveInternal', function ((array) $attributes, (array) $options) use (\Winter\Storm\Database\Model $model) { // Prevent anything from saving ever! return false; });

Usage

Triggers

Class or file Line
Winter\Storm\Database\Model 883
Copyright © 2024 Winter CMS