/**
  * @param array $params
  *
  * @return mixed
  */
 public function save(array $params)
 {
     $attributes = [];
     $attributes['id'] = isset($params['id']) ? $params['id'] : null;
     $result = $this->eloquent->updateOrCreate($attributes, $params);
     if ($result) {
         $this->cache->flush();
     }
     return $result;
 }
 /**
  * @param array $params
  *
  * @return mixed
  */
 public function save(array $params)
 {
     $result = $this->eloquent->fill($params)->save();
     $this->cache->flush();
     return $result;
 }