public function update($id, array $attribute) { if ($this->model->update($id, $attribute)) { $this->cache->forget($this->getKey('all')); $this->cache->forget($this->getKey('id-' . $id)); } }
public function update($id, array $attribute) { if ($this->model->update($id, $attribute)) { $this->cache->tags($this->baseCacheKey)->flush(); } }