title: Laravel JQuery AJAX POST get data
body: <p>I have a code:</p>
  
  <pre><code>var bet = {
      tournament: '',
      bo: '1',
      bet_team: '2',
      betted: '3',
      potential: '4',
      percent: '5'
  };
  
  $.ajax({
      type: 'POST',
      url: '/api/makeBet/',
      data: bet,
      contentType: 'application/json',
      dataType: 'json',
      success: function(data) {
          if(data.error) {
              sweetAlert("Oops...", data.data, "error");
          } else {
              sweetAlert("Success!", data.data, "success");
          }
      },
      error: function(html, status) {
          console.log(html.responseText);
          console.log(status);
      }
  });
  </code></pre>
  
  <p>But when I'm trying to get <code>$request-&gt;tournament</code> or something else, I'm getting nothing.</p>