lumen使用 throttle 限制接口访问频率
在app/Http/Middleware/下创建文件ThrottleRequests.php
<?php
namespace App\Http\Middleware;
use Closure;
use Illuminate\Cache\RateLimiter;
use Illuminate\Cache\RateLimiting\Unlimited;
use Illuminate\Http\Exceptions\HttpResponseException;
use Illuminate\Http\.
原创
2021-04-26 15:06:45 ·
537 阅读 ·
0 评论