title: Laravel check CSRF manually in controller
body: <p>I'm using Laravel 5.5. When I send POST request from laravel blade. Then everything is ok:</p>
  
  <pre><code>$.post({
      url: 'http://localhost/check',
      data: {
          _token: CSRF_TOKEN,  // I have CSRF token variable above.
          test: "it works"
      }
  })
  </code></pre>
  
  <p>But I want to send that request with socket.io > node.js > laravel :</p>
  
  <pre><code>socket.emit('checkPost', { token: CSRF_TOKEN });
  </code></pre>
  
  <p>index.js</p>
  
  <pre><code>socket.on('checkPost', function (csrf) {
      request.post({
          url: 'http://localhost/check',
          form: {
              _token: csrf.token,
              test: "it works"
          }
      });
  });
  </code></pre>
  
  <p>With ajax everything is ok. Here I got token missmatch. Why?</p>
  
  <p>When I disable token verification in <code>VerifyCsrfToken</code> for /check route then node request works too.</p>
  
  <p>How can I fix that? Maybe there is controller csrf check method? Then I'll check post csrf in controller.. Thanks in advance and sorry for my bad English.</p>