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 開頭的所有網址