怎么在PasswordController.php中同时限流两个方法呢?
$this->middleware('throttle:3,1', [
// 针对showLinkRequestForm()方法做了限流
'only' => ['showLinkRequestForm']
]);
$this->middleware('throttle:2,1', [
// 针对showLinkRequestForm()方法做了限流 1分钟2次
'only' => ['sendResetLinkEmail']
]);
我这么写了好像不行,只能点一次发送邮件就被限流了
推荐文章: