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