/** * @param $id * @return mixed|void */ public function delete($id) { $this->category = $this->category->find($id); $this->category->articles()->delete($id); $this->category->delete(); }