/** * Remove the specified resource from storage. * * @param int $id * @return Response */ public function destroy($projectId, $noteId) { if ($this->repository->find($noteId)->delete()) { return ["success" => true]; } return ["success" => false]; }
public function update(array $data, $id) { return $this->repository->update($data, $id); }