| 1 | <?php |
||
| 8 | class Participant extends MessengerParticipant |
||
| 9 | { |
||
| 10 | public function scopeByWhom($query, $user_id) |
||
| 18 | |||
| 19 | // public static function boot() |
||
| 20 | // { |
||
| 21 | // static::updating(function ($model) { |
||
| 22 | // // do some logging |
||
| 23 | // // override some property like $model->something = transform($something); |
||
| 24 | // }); |
||
| 25 | // parent::boot(); |
||
| 26 | // } |
||
| 27 | } |
||
| 28 |