title: How to send Laravel POST to external API
body: <p>I'm working on a local application and I want every time the user record a new item, I send the information to another remote application to save it.</p>
  
  <p>I setup a Controller in the remote application to handle the post and save it.</p>
  
  <p>In my local controller:</p>
  
  <pre><code>$client = new Client;
      $r = $client-&gt;post('https://url-of-the-remote-app/api/store/fiche', 
      ['json' =&gt; [
          "access_token" =&gt; csrf_token(),
          "request" =&gt; $request
      ]]);
  </code></pre>
  
  <p>But I have this error. </p>
  
  <blockquote>
    <p>lient error: <code>POST https://url-of-the-remote-app/api/store/fiche</code>
    resulted 
        in a <code>419 unknown status</code> response:   
          
  </blockquote>