model.afterUpdate

Called after the model is updated

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

Example usage:

$model->bindEvent('model.afterUpdate', function () use (\Winter\Storm\Database\Model $model) { if ($model->title !== $model->original['title']) { \Log::info("{$model->name} updated its title!"); } });

Usage

Triggers

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