/** * Remove the specified post from storage. * * @param int $id * @return Response */ public function destroy($id) { Answer::destroy($id); return Redirect::back(); }
/** * Remove the specified resource from storage. * DELETE /answers/{id} * * @param int $id * @return Response */ public function destroy($id) { $status = Answer::destroy($id); return $status ? ['status' => true] : ['status' => false]; }