Example #1
0
 public function update(array $attributes = [], array $options = [])
 {
     parent::update($attributes, $options);
     if (array_key_exists('avatar', $attributes)) {
         self::saveAvatar($attributes['avatar'], $this);
     }
     return $this;
 }