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