title: Send Patch request from vuejs to PHP backend using AxiosAbstraction
body: <p>I want to send a PATCH request to change user (promotor) birthdate from frontend Vuejs to backend PHP. with my code below, the new date of birth doesnt get to the data base, and somehow the date of birth in the data base turns to null when i send the request. </p>
  
  <p>here is my front end code: </p>
  
  <pre><code>      updateDob(){
          let newdob = `${this.dob} 00:00:00`;  
                // newdob will be like this &gt; 1996-02-29 00:00:00
          this.$store.commit('updateRegistration', { key: 'dob', value: newdob });
          console.log('thats what changed    &gt;&gt;&gt;&gt;&gt;&gt;', newdob)
           window.AxiosAbstraction.request('PATCH', 'promotor/changeDob', { data: newdob }, { host: 'legacy' }).then((response) =&gt; {
           window.console.log('this is what we sent      &gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;', newdob)
           window.console.log('helloooooooooo   rrrresspooooonse &gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;',response);
           }).catch((error) =&gt; {
             window.console.error(error);
             if(error.response.data &amp;&amp; error.response.data.errors)
             {
               error.response.data.errors.forEach((error) =&gt; {
                 alert(error.description);
               });
             }
           });
          this.edit= false;
        },
  </code></pre>
  
  <p>and here is the endpoint I wrote in PHP :</p>
  
  <pre><code>SimpleRouter::patch('promotor/changeDob', function($promotorID) {
    cors();
    global $promotor;
    $response = new \Response();
  
    $data = HTTP::data();
     $data-&gt;dob;
    $promotor-&gt;update([
      'dob' =&gt; $data-&gt;dob
    ]);
     call promotor update dob
     $promotor-&gt;update([
       'dobChanged' =&gt; $data-&gt;1
     ]);
    \Response::json([
      'success'   =&gt; false
    ]);
  
    \Response::json($response_obj-&gt;error());
  });
  </code></pre>
  
  <p>on the database table:
  -the date of birth data type is : datetime. 
  -the dobChanged data type is : tinyInt. </p>
  
  <p>any idea what is wrong or can be done to modify the date of birth correctly? </p>
  
  <p>Thanks! </p>