Just curious, I know that it's possible to disable verify csrf tokens by adding specific routes to the VerifyCsrfToken.php $except array, but I am wondering if there's someway that it could be done by adding middleware to the routes, such as:
class VerifyCsrfToken extends BaseVerifier
{
/**
* The URIs that should be excluded from CSRF verification.
*
* @var array
*/
protected $except = [
//
];
}
Should be self-explaining. You can even use a wildcard (*). But be sure to enter the URIs ('/path'), not the route names.