Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

Laravel view routes

use IlluminateCacheRateLimitingLimit;
use IlluminateSupportFacadesRateLimiter;

/**
 * Configure the rate limiters for the application.
 *
 * @return void
 */
protected function configureRateLimiting()
{
    RateLimiter::for('global', function (Request $request) {
        return Limit::perMinute(1000);
    });
}
Source by laravel.com #
 
PREVIOUS NEXT
Tagged: #Laravel #view #routes
ADD COMMENT
Topic
Name
2+4 =