/** * Detach all titles and actors from given category. * * @param mixed $id * @return void */ public function detachAll($id) { $this->model->find($id)->title()->detach(); $this->model->actor()->detach(); Cache::forget('home.content'); }