讨论数量:
Laravel的话,可以在路由上放个中间器, 这个trottle
限制为 每1分钟60次
Route::prefix("/api/")
->middleware("trottle:60,1")
->group(function() {
Route::get("/") ....
.........
});
Laravel的话,可以在路由上放个中间器, 这个trottle
限制为 每1分钟60次
Route::prefix("/api/")
->middleware("trottle:60,1")
->group(function() {
Route::get("/") ....
.........
});
推荐文章: