/** * Remove the specified resource from storage. * * @param int $id * @return Response */ public function destroy($id, $noteId) { if ($this->checkProjectPermissions($id) == false) { return ['error' => 'Access Forbidden']; } $this->service->destroy($noteId); }
/** * Remove the specified resource from storage. * * @param int $noteId * @return Response */ public function destroy($noteId) { return $this->service->destroy($noteId); }
/** * Remove the specified resource from storage. * * @param int $id * @return Response */ public function destroy($project_id, $note_id) { return $this->service->destroy($note_id); }