Example #1
0
 /**
  * Remove the specified resource from storage.
  *
  * @param  int  $id
  * @return Response
  */
 public function destroy($id)
 {
     //
     $polling = Polling::find($id);
     if ($polling->delete()) {
         return response()->json(array('success' => TRUE));
     }
 }