📜  laravel 发布请求页面 csrf 禁用 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:53:43.451000             🧑  作者: Mango

代码示例1
// Open file \App\Http\Middleware\VerifyCsrfToken.php
//Disable for all routes
protected $except = [
    '*',
];

//Disable for some routes
 protected $except = [
    'mobile/*',
    'news/articles',
];
//I searched for a long time how to disable CSRF completely, 
//there are many identical examples but they do not help