model.setAttribute
Called after the model attribute is set
Note: also triggered in Winter\Storm\Halcyon\Model
Note: also triggered in Winter\Storm\Halcyon\Model
Example usage:
$model->bindEvent('model.setAttribute', function ((string) $key, $value) use (\Winter\Storm\Database\Model $model) { if ($key === 'not-for-you-to-touch') { \Log::info("{$key} has been touched and set to {$value}!") } });
Usage
Triggers
Class or file | Line |
---|---|
Winter\Storm\Database\Model
|
1394 |
Copyright © 2024 Winter CMS