/** * Remove the specified Gcm from storage. * * @param int $id * * @return Response */ public function destroy($id) { $gcm = $this->gcmRepository->find($id); if (empty($gcm)) { Flash::error('Gcm not found'); return redirect(route('gcms.index')); } $this->gcmRepository->delete($id); Flash::success('Gcm deleted successfully.'); return redirect(route('gcms.index')); }
/** * Remove the specified Gcm from storage. * DELETE /gcms/{id} * * @param int $id * * @return Response */ public function destroy($id) { $this->gcmRepository->apiDeleteOrFail($id); return $this->sendResponse($id, "Gcm deleted successfully"); }