title: Invalid datetime format in laravel while sending data from angular
body: <p>Can anyone help me how to solve this issue? I have a request data from angular that I had passed to the laravel backend for inserting multiple rows at a time. But I got below error. I tried running the below query in Mysql, it is working fine there but not from laravel.</p>
  <p>How can I fix this??</p>
  <p>Request data from Angular (API):</p>
  <pre><code>[
    {
      &quot;customer_id&quot;: 3,
      &quot;check_in_date&quot;: &quot;2020-07-30T00:00:00.000Z&quot;,
      &quot;check_out_date&quot;: &quot;2020-07-31T00:00:00.000Z&quot;,
      &quot;room_id&quot;: 2
    },
    {
      &quot;customer_id&quot;: 3,
      &quot;check_in_date&quot;: &quot;2020-07-29T00:00:00.000Z&quot;,
      &quot;check_out_date&quot;: &quot;2020-07-31T00:00:00.000Z&quot;,
      &quot;room_id&quot;: 3
    }
  ]
  </code></pre>
  <p>Migration Table</p>
  <pre><code>public function up()
  {
      Schema::create('reservations', function (Blueprint $table) {
          $table-&gt;bigIncrements('id');
          $table-&gt;unsignedBigInteger('room_id');
          $table-&gt;foreign('room_id')-&gt;references('id')-&gt;on('rooms');
          $table-&gt;unsignedBigInteger('customer_id');
          $table-&gt;foreign('customer_id')-&gt;references('id')-&gt;on('customers');
          $table-&gt;unsignedBigInteger('booking_id')-&gt;nullable();
          $table-&gt;foreign('booking_id')-&gt;references('id')-&gt;on('bookings');
          $table-&gt;dateTime('check_in_date');
          $table-&gt;dateTime('check_out_date');
          $table-&gt;timestamps();
      });
  }
  </code></pre>
  <p>Controller of reservation:</p>
  <pre><code>public function store(Request $request)
  {
      $reservation = Reservation::insert($request-&gt;all());
      
      return $this-&gt;jsonResponse(true, 'Reservation has been created successfully.', $reservation);
  }
  
  
  private function jsonResponse($success = false, $message = '', $data = null)
  {
      return response()-&gt;json([
          'success' =&gt; $success,
          'message' =&gt; $message,
          'data' =&gt; $data
      ]);
  }
  </code></pre>
  <p>Error:</p>
  <pre><code> &quot;message&quot;: &quot;SQLSTATE[22007]: Invalid datetime format: 1292 Incorrect datetime value: '2020-07- 
   29T00:00:00.000Z' for column 'check_in_date' at row 1 
  
   (SQL: insert into `reservations` (`check_in_date`, `check_out_date`, `customer_id`, `room_id`)
  
   values (2020-07-30T00:00:00.000Z, 2020-07-31T00:00:00.000Z, 3, 2),
          (2020-07-29T00:00:00.000Z, 2020- 07-31T00:00:00.000Z, 3, 3))&quot;,
   &quot;exception&quot;: &quot;Illuminate\\Database\\QueryException&quot;,
  </code></pre>