Example #1
0
 public function delete_history(Request $request)
 {
     $user_soap_history = UserSoapHistory::find($request['history']);
     if ($user_soap_history != null) {
         DB::beginTransaction();
         try {
             $user_soap_history->delete();
             DB::commit();
             return "success";
         } catch (\Exception $e) {
             DB::rollback();
             return "fail";
         }
     }
 }