来自 instamojo api 的响应已成功提取,但问题是 webhook 服务无法正常工作。在此,我在请求中提供了一个 webhook url,我想排除 CSRF 验证,因为我已经'instamojo/*'
在中间件中包含了 except 数组,但仍然没有用。
class VerifyCsrfToken extends Middleware
{
/**
* The URIs that should be excluded from CSRF verification.
*
* @var array
*/
protected $except = [
'instamojo/*',
];
}
当前路线
Route::post('webhook','HomeController@webhook');