Laravel Quota is a package for tracking and enforcing cumulative usage budgets across calendar periods (daily, monthly, etc.), distinct from Laravel's built-in RateLimiter which handles burst throttling. It offers a fluent API, a HasQuotas Eloquent trait, route middleware that only charges on successful responses, atomic consumption via locks, and both cache and database storage backends. Supports PHP 8.2+ and Laravel 11–13.

3m read timeFrom laravel-news.com
Post cover image
Table of contents
# The Fluent API# Quotas on Eloquent Models# Route Middleware# Storage Backends# Installation
217.9K Impressions2 Comments