/** * @param int $storeId * @param int $id * @return mixed */ public function destroy($storeId, $id) { if (!($store = $this->storeRepository->getItem($storeId))) { return $this->respondNotFound(); } $this->hookRepository->delete($store, $id); return Redirect::route('stores.hooks.index', [$storeId]); }
/** * @param $id * @return mixed */ public function destroy($id) { $this->repository->delete($id); return Redirect::route('stores.index'); }