/** * Remove the specified resource from storage. * * @param int $id * @return \Illuminate\Http\Response */ public function destroy($id) { if ($this->checkProjectOwner($id) == false) { return ['error' => 'sem permissão']; } return $this->repository->delete($id); }
/** * Remove the specified resource from storage. * * @param int $id * @return \Illuminate\Http\Response */ public function destroy($id) { if ($this->checkProjectPermissions($id) == false) { return ['error' => 'Access Forbidden']; } return parse_str($this->repository->delete($id)); }
/** * Remove the specified resource from storage. * * @param int $id * @return Response */ public function destroy($id) { return ['success' => $this->service->delete($id)]; }
/** * Remove the specified resource from storage. * * @param int $id * @return \Illuminate\Http\Response */ public function destroy($id, $noteId) { return strval($this->repository->delete($noteId)); }