title: Jquery ajax in laravel 5.6
body: <p><code>$request-&gt;amount</code> is not working on a controller in Laravel. Why. What is my error?
  Then I change like <code>$request-&gt;input('amount');</code> anyway it didn't work.</p>
  
  <pre><code>&lt;script&gt;
  
      function getMessage(product_id){
          $.ajax({
              headers: { 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')},
              type:'POST',
              url:'/getmsg/'+product_id,
              date: {
                amount: 4,
                buyed_price: 1200,
              },
  
              data:'_token = &lt;?php echo csrf_token() ?&gt;',
              success:function(data){
                  $("#msg").html(data.msg);
              }
          });
      }
  &lt;/script&gt;
  </code></pre>
  
  <p>I have not got any input yet. just I need send 4 as the amount to the controller. please look my code</p>