title: CSRF token issues with multiple ajax calls
body: <p>I have a laravel page that allows users to save a search but only if they are logged in. They can log in with no problem or save a search with no problem, the CSRF token is accepted. However, if the user has to log in and then save a search I get the "CSRF token mismatch." error. </p>
  
  <p>I'm assuming that a new token is generated on each post or database update but not sure. Should I be retrieving a new CSRF token after the post to the controller and then updating the CSRF inputs on the page? </p>
  
  <p>I've tried with this in my header</p>
  
  <pre><code>&lt;meta name="csrf-token" content="{{ csrf_token() }}"&gt;
  </code></pre>
  
  <p>and also using this in my forms </p>
  
  <pre><code>@csrf
  </code></pre>
  
  <p>and then in my ajax calls</p>
  
  <pre><code>var token    = $('[name=_token]').val();
  </code></pre>
  
  <p>The token is being passed in the parameters so I know it is there but will only work on the first ajax call</p>