model.setAttribute

Triggered in October\Rain\Database\Concerns\HasAttributes.

Called after the model attribute is set

Example usage:

$model->bindEvent('model.setAttribute', function ((string) $key, $value) use (\October\Rain\Database\Model $model) {
    if ($key === 'do-not-touch') {
        \Log::info("{$key} has been touched and set to {$value}!")
    }
});