/** * Remove the specified resource from storage. * * @param int $id * @return Response */ public function destroy($noteId, $id) { if ($this->checkProjectsOwner($id) == false) { return ['error' => 'Acesso Negado']; } $this->repository->find($noteId)->delete(); }
/** * Remove the specified resource from storage. * * @param int $id * @return Response */ public function destroy($noteId) { $this->repository->find($noteId)->delete(); }