app/Http/VerifyCsrfToken.php
/**
* The URIs that should be excluded from CSRF verification.
*
* @var array
*/
protected $except = [
//這裡填入相對應的網址
'test/*'
];
如上方程式碼顯示,排除test 開頭的所有網址
app/Http/VerifyCsrfToken.php
/**
* The URIs that should be excluded from CSRF verification.
*
* @var array
*/
protected $except = [
//這裡填入相對應的網址
'test/*'
];
如上方程式碼顯示,排除test 開頭的所有網址