예제 #1
0
 /**
  * Remove the specified post from storage.
  *
  * @param  int  $id
  * @return Response
  */
 public function destroy($id)
 {
     Answer::destroy($id);
     return Redirect::back();
 }
예제 #2
0
 /**
  * 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];
 }