Esempio n. 1
0
 public function destroy(Update $update)
 {
     if (is_integer($update)) {
         $update = Update::find($update);
     }
     $update->delete();
     Flash::success('Update has been created Deleted!');
     return Redirect::back();
 }
 public function destroy($update)
 {
     $update = Update::find($update);
     $update->delete();
     return response(['data' => true, 'status' => 'success', 'message' => 'successfully deleted']);
 }