📜  Laravel 查看路由 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:21.726000             🧑  作者: Mango

代码示例3
use Illuminate\Cache\RateLimiting\Limit;
use Illuminate\Support\Facades\RateLimiter;

/**
 * Configure the rate limiters for the application.
 *
 * @return void
 */
protected function configureRateLimiting()
{
    RateLimiter::for('global', function (Request $request) {
        return Limit::perMinute(1000);
    });
}