title: Laravel Store , corrupted or not all are saved on database
body: <pre><code> public function patient_aprrovedischarge(Request $request, $id)
      {
          //get patient details
          $patientDischarge =  DischargedPatients::where('id', '=', $id)-&gt;first();
  
          //find patient update to DISCHARGE pending
          $updatepatient = Patients::find($patientDischarge-&gt;patient_id);
          $updatepatient-&gt;user_currently_at = 'DISCHARGED';
          
          // //update discharge details
          $dischargepatient = DischargedPatients::find($id);
          $dischargepatient-&gt;status = 'approved';
          $dischargepatient-&gt;discharged_by = auth()-&gt;user()-&gt;id; 
          $dischargepatient-&gt;discharged_date = date('Y-m-d H:i:s');
          
          // //save remarks
          $dischargeRemarks = new Remarks();
          $dischargeRemarks-&gt;remarks_detail = 'Discharged Aprroved';
          $dischargeRemarks-&gt;remarks_from = auth()-&gt;user()-&gt;id;
          $dischargeRemarks-&gt;user_from_type = 'MO';
          $dischargeRemarks-&gt;patient_id = $patientDischarge-&gt;patient_id; 
  
          $updatepatient-&gt;save();
          $dischargepatient-&gt;save();
          $dischargeRemarks-&gt;save();
  
          return redirect('/medical/discharged')-&gt;with('success', 'Patient is now discharged!');
      }
  </code></pre>
  <p><strong>sorry , im not good with stack overflow, my problem is that not all of these 3 saves are on the database. its already uploaded on the hosting, maybe anyone can explain why, i think it has problem with the internet since sometimes it disconnects</strong></p>