Skip to content
Discussion options

You must be logged in to vote
RateLimiter::for('global', function (Request $request) {
    return Limit::perMinute(1000)->response(function (Request $request, array $headers) {
        // do your magic here.
        return response('Custom response...', 429, $headers);
    });
});

Replies: 2 comments 9 replies

Comment options

You must be logged in to vote
9 replies
@siarheipashkevich
Comment options

@ghost
Comment options

@siarheipashkevich
Comment options

@ghost
Comment options

@siarheipashkevich
Comment options

Answer selected by siarheipashkevich
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant