title: CSRF Token mismtach error in laravel ajax
body: <p>Hi guys i am trying to insert form values in db using jquery ajax..while inserting i am getting error as CSRF Token mismatch.
  Tried inserting csrf token from headers.but still it is showing same error.</p>
  <p>Here is my code:</p>
  <pre><code>function saveFile()
          {
              chk_EnumValuesValidation = chkEnumValuesValidation(isSoltion, stepCount);
              if(!chk_EnumValuesValidation)
              {
                  return false;
              }
              else
              {
                  // Function to push &quot;MainArray&quot; in current Solution
                  pushVarMainArrayInThisSolution(isSoltion, var_main_arr.var_arr_values);
                  // alert('Aalaaaaaaa');
                  arr                = ar;
                  var subject_list   = $('#qtype_subject_id').val();
                  var ddl_topic_type = $('#qtype_topic_id').val();
                  var qtype_name = $('#qtype_name').val();
                  var qtype_option = $('#qtype_option').val();
                  var batch = [];
                  $(&quot;.batch:checked&quot;).each(function ()
                  {
                      batch.push(parseInt($(this).val()));
                  });
  
                  var sendInfo       = {
                      'arr':arr,
                      'saveFile':1,
                      'subject_list':subject_list,
                       'topic_list':ddl_topic_type,
                        'qtype_name':qtype_name,
                        'qtype_option': qtype_option
                    };
  
                  $.ajax({
                      url: &quot;/eqtype-editor/store&quot;,
                      type: &quot;POST&quot;,
                      data :sendInfo,
  
                      contentType: &quot;application/x-www-form-urlencoded&quot;,
                      success: function(response)
                      {
                          data = JSON.parse(response);
                          if(data.Success == 'Success')
                          {
                              // for same file creation when again click on save button
                              alert('Your file is saved!');
                              // window.location.href=&quot;qtype_list.php?pag=Masters&quot;;
                          }
                          else
                          {
  
                           alert(data.resp);
                          }
                      },
                      error: function (request, status, error)
                      {},
                      complete: function()
                      {}
                  });
              }
          }
  </code></pre>
  <p>Can anyone help me where i did mistake.Thank you in advance</p>