📜  Laravel 从 csrf 令牌验证中排除 URI - PHP 代码示例

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

代码示例1
//VerifyCsrfToken middleware 
class VerifyCsrfToken extends Middleware
{
    /**
     * The URIs that should be excluded from CSRF verification.
     *
     * @var array
     */
    protected $except = [
    'data/bigcommerce','/data/shopify','/data/magento'
    ];
}