/** * Remove the specified resource from storage. * * @param Business $business Business to destroy service of * @param Service $service Service to destroy * * @return Response */ public function destroy(Business $business, Service $service) { logger()->info(__METHOD__); logger()->info(sprintf('businessId:%s serviceId:%s', $business->id, $service->id)); $this->authorize('manageServices', $business); // BEGIN ////////////////// // FOR REFACTOR // ////////////////// $service->forceDelete(); flash()->success(trans('manager.services.msg.destroy.success')); return redirect()->route('manager.business.service.index', $business); }
/** * Remove the specified resource from storage. * * @param Business $business Business to destroy service of * @param Service $service Service to destroy * @return Response */ public function destroy(Business $business, Service $service) { $this->log->info(__METHOD__); $this->log->info(sprintf("businessId:%s serviceId:%s", $business->id, $service->id)); /////////////////////////////// // TODO: AUTH GATE GOES HERE // /////////////////////////////// ////////////////// // FOR REFACTOR // ////////////////// $service->forceDelete(); Flash::success(trans('manager.services.msg.destroy.success')); return redirect()->route('manager.business.service.index', $business); }