Cache::put(‘x‘,Cache::get(‘x‘)+1,1440);if(Cache::get(‘x‘)>5){ return [‘code‘=>205,‘data‘=>‘‘,‘msg‘=>‘请求次数过于频繁‘];}或中间件throttle:次数,时间
laravel 接口请求频次限制
原文:https://www.cnblogs.com/aguo/p/15221564.html