laravel-wechat 支付注意事项

微信通知

在VerifyCsrfToken文件里面添加微信通知地址,表示这个这地不用验证

<?php

namespace App\Http\Middleware;

use Illuminate\Foundation\Http\Middleware\VerifyCsrfToken as Middleware;

class VerifyCsrfToken extends Middleware
{
    /**
     * The URIs that should be excluded from CSRF verification.
     *
     * @var array
     */
    protected $except = [
        // wechat
        'wechat',
        // 微信通知地址
        'wx_notify_url'
    ];
}

猜你喜欢

转载自blog.csdn.net/qq_29755359/article/details/82655962