Middleware verifying CSRF tokens on non-readonly routes to prevent cross-site request forgery.
<?php
namespace App\Http\Middleware;
use Illuminate\Foundation\Http\Middleware\VerifyCsrfToken as Middleware;
class VerifyCsrfToken extends Middleware
{
/**
* The URIs that should be excluded from CSRF verification.
*
* @var array<int, string>
*/
protected $except = [
//
];
}
See the full source, get the GitHub permalink, and search 40K more like it.
Get a free API key