title: Form Data not getting in Laravel 5.7 that post from Angular 7
body: <p>I am using <code>Angular 7</code> and <code>Laravel 5.7</code>. I need to post data from Angular to Laravel.</p>
  
  <p>Here is My <code>Angular 7</code> code to post data to laravel api : </p>
  
  <pre><code>const target = event.target;
          const name = target.querySelector('#name').value;
          const phone = target.querySelector('#phone').value;
          const file = target.querySelector('#file').files[0];
          const httpOptions = {
              headers: new HttpHeaders({
                  'Authorization' : 'Bearer ' +  Cookie.get('token'),
                  'Content-type': 'multipart/form-data; charset=utf-8; boundary=' + Math.random().toString().substr(2)
              })
          };
         const input = new FormData();
          input.append('name', name);
          input.append('phone', phone);
          input.append('file', file);
  
  
          this.http.post(this.globvar.apipath + 'api/dpost/update/' + this.slug, input, httpOptions ).subscribe(
              data =&gt; {
  console.log(data);
  
              },
              error =&gt; {}
          );
  </code></pre>
  
  <p>and here is my Laravel 5.7 Controller Code : </p>
  
  <pre><code>static public function updatecarspa($slug, Request $request)
      {
  
          echo "&lt;pre&gt;";
          print_r($request-&gt;input('name'));
          echo "&lt;/pre&gt;";
          exit;
  
         // $slug = $request-&gt;input('name');
  
          return response()-&gt;json(['data'=&gt;$slug], 200);
      }
  </code></pre>
  
  <p>There is no Error print from laravel its print blank <code>&lt;pre&gt;&lt;/pre&gt;</code>;</p>
  
  <p>I am new to angular and I am not getting any data from angular to laravel. Please help me.</p>