model.afterSave

Triggered in October\Rain\Database\Model.

Called after the model is saved

Note: This is called both when creating and updating Note: also triggered in October\Rain\Halcyon\Model

Example usage:

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