/**
  * @param array $attributes
  * @return mixed
  */
 public function create(array $attributes)
 {
     if ($this->model->create($attributes)) {
         $this->cache->tags($this->baseCacheKey)->flush();
     }
 }
Example #2
0
 /**
  * @param array $attributes
  * @return mixed
  */
 public function create(array $attributes)
 {
     if ($this->model->create($attributes)) {
         $this->cache->forget($this->getKey('all'));
     }
 }