如何清除Laravel中的登录尝试?

use*_*278 3 php login laravel laravel-5

我正在使用Laravel的Auth Throttling功能,它可以正常工作,但是我想知道如何清除该电子邮件的登录尝试? http://laravel.com/docs/5.1/authentication#authentication-throttling

当前锁定时间为“尝试登录过多。请在5418秒内重试”

buz*_*ykg 10

在控制台中运行它,php artisan cache:clear您就很好了


Eri*_*uff 3

在包含该ThrottlesLogins特征的控制器中,创建一个新的路由处理程序方法:

public function clearThrottle(Request $request) {
    $this->clearLoginAttempts($request);
    // Forward elsewhere or display a view
}
Run Code Online (Sandbox Code Playgroud)