title: POST 419 (unknown status) laravel error
body: <p>i want to submit my form using ajax following is my javascript</p>
  
  <pre><code>$.ajax({
  
        type: "POST",
        headers: {
      'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
    }
        url: "http://localhost/shago/register/submit",
        data: user_firstname,
  
        dataType: "text",
        success: function(resultData) { alert("Save Complete") }
  });
  </code></pre>
  
  <p>i have included meta tag in form like</p>
  
  <pre><code>&lt;div id="individual" class="hid"&gt;
  &lt;form method="POST" id="individual_form" name="individual_form" action="{{ route('register.submit') }}"&gt;
  &lt;meta name="csrf-token" content="{{ csrf_token() }}"&gt;
  </code></pre>
  
  <p>and in controller i have just returned a message but i am getting </p>
  
  <p>POST <a href="http://localhost/shago/register/submit" rel="nofollow noreferrer">http://localhost/shago/register/submit</a> 419 (unknown status)</p>
  
  <p>above error can you please help me ,let me know for any other inputs i know it is mostly caused by csrf token 
  (i have declared submit route in web.php and also api.php file)</p>