 <p>If you need to do AJAX request, turn-off the <strong>VerifyCsrfToken</strong> middleware on your <strong>Kernel.php</strong> file.</p> <p>You can also edit your <strong>VerifyCsrfToken.php</strong> middleware file to exclude certain URLs like this way:</p> <p><code>/** * The URIs that should be excluded from CSRF verification. * * @var array */ protected $except = [ 'ajax/*', 'api/*', ];</code></p>