/** * Remove the specified resource from storage. * * @param int $idx * * @return Response */ public function destroy($idx) { $this->checkParametersEmpty(); $author = Author::findOrFail($idx); $author->delete(); return $this->getCodeResponse(Response::HTTP_NO_CONTENT); }
/** * Remove the specified resource from storage. * * @param int $id * * @return Response */ public function destroy($id) { $author = Author::findOrFail($id); $author->delete(); return $this->getCodeResponse(Response::HTTP_NO_CONTENT); }