Laravel 提示 ThrottleRequestsException Too Many Attempts 怎么定位?

(1/1) ThrottleRequestsException
Too Many Attempts.
in ThrottleRequests.php line 122
at ThrottleRequests->buildException('40f18c6598e4292c99e545c266d4c7a30fe138e6', 60)
in ThrottleRequests.php line 52
at ThrottleRequests->handle(object(Request), object(Closure), 60, '1')
in Pipeline.php line 151
at Pipeline->Illuminate\Pipeline{closure}(object(Request))
in Pipeline.php line 53
at Pipeline->Illuminate\Routing{closure}(object(Request))
in Pipeline.php line 104
at Pipeline->then(object(Closure))
in Router.php line 667
这种提示访问次数频繁如何定位到是哪里访问过多

碧海吹雨
《L02 从零构建论坛系统》
以构建论坛项目 LaraBBS 为线索,展开对 Laravel 框架的全面学习。应用程序架构思路贴近 Laravel 框架的设计哲学。
《G01 Go 实战入门》
从零开始带你一步步开发一个 Go 博客项目,让你在最短的时间内学会使用 Go 进行编码。项目结构很大程度上参考了 Laravel。
讨论数量: 1

你是请求接口吧?一般用api,在Kernel中对api有限制。

'api' => [
            'throttle:60,1',
            'bindings',
        ],

这个就是说一分钟只能请求60次

5年前 评论

讨论应以学习和精进为目的。请勿发布不友善或者负能量的内容,与人为善,比聪明更重要!