title: CSRF token using SPA
body: <p>I'm using Vue js for the SPA and Laravel for the backend. It all works fine but once a form has been submitted the crsf token obviously hasn't refreshed so when I go to then submit another form I get a <code>TokenMismatchException</code>. </p>
  
  <p>I can't put the csrf token into the form as vue throws an error when it attempts to render as the form is a component within vue.</p>
  
  <p>I can access the csrf token using vue's default common headers by searching for <code>name=_token</code> which will work on the first request but on any requests after Laravel will return a <code>TokenMismatchException</code> as the token has been used recently by the currently logged in user. </p>
  
  <p>I need to figure out a way so that the token can be refreshed without having to refresh the page as then it wouldn't be an SPA.</p>
  
  <p>Any help would be appreciated.</p>
  
  <p>Thanks.</p>