/** * Remove the specified resource from storage. * * @param int $id * @return Response */ public function destroy($id) { // Start transaction! \DB::beginTransaction(); try { $Contact = Contact::find($id); if ($Contact) { $this->withdraw($Contact); // Commit \DB::commit(); return Response::json(['result' => 'OK']); } } catch (\ValidationException $e) { // Rollback and then redirect DB::rollback(); App::abort(404); } // Rollback DB::rollback(); }