1. 程式人生 > >laravel-wechat 支付注意事項

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'
    ];
}