<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/laravel-quota-usage-budgets-for-calendar-periods-idwexf35e" -->

---
title: Laravel Quota: Usage Budgets for Calendar Periods
description: Laravel Quota is a package for tracking and enforcing cumulative usage budgets across calendar periods (daily, monthly, etc.), distinct from Laravel's built-in...
canonical: https://daily.dev/posts/laravel-quota-usage-budgets-for-calendar-periods-idwexf35e
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Laravel Quota: Usage Budgets for Calendar Periods | daily.dev
og:description: Laravel Quota is a package for tracking and enforcing cumulative usage budgets across calendar periods (daily, monthly, etc.), distinct from Laravel's built-in...
og:url: https://daily.dev/posts/laravel-quota-usage-budgets-for-calendar-periods-idwexf35e
og:image: https://api.daily.dev/og/posts/idwEXf35e.png
og:image:alt: Laravel Quota: Usage Budgets for Calendar Periods
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Laravel Quota: Usage Budgets for Calendar Periods

**[Laravel News](https://daily.dev/sources/ln)** · 3 min read · 39 upvotes · 2 comments

## Summary

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.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://laravel-news.com/laravel-quota-usage-budgets-for-calendar-periods>

## Questions this post answers

### How is Laravel Quota different from Laravel's built-in RateLimiter?

Laravel Quota tracks cumulative usage against a budget that resets on a calendar boundary (like 1,000 API queries per day or 50 PDF exports per month), while RateLimiter throttles bursts of traffic in a sliding window. Quota can also persist counts in a database rather than only in cache, which matters when usage is tied to billing.

_Developers comparing rate limiting and usage-budget approaches can track Laravel ecosystem package releases like this on daily.dev._

### How do I add a per-user monthly usage quota to a Laravel route?

Attach the quota route middleware with a name, limit, and period, for example middleware('quota:exports,50,month'). Capacity is checked before the route runs, but the quota is only consumed once the response returns 2xx or 3xx, so a failed request or validation error doesn't cost the user anything.

_Laravel developers shipping metered features can follow package deep dives like this on daily.dev._

### Which PHP and Laravel versions does the zaber-dev/laravel-quota package support?

It requires PHP 8.2 and supports Laravel versions 11, 12, and 13. Install it via composer require zaber-dev/laravel-quota, publish the config with vendor:publish, and run php artisan migrate to set up the quotas table for the database backend.

_Teams tracking Laravel package compatibility before adopting new tools can follow releases like this on daily.dev._

## Similar posts on daily.dev

- [Why I Built an Application-Level Quota Manager for Laravel](https://daily.dev/posts/why-i-built-an-application-level-quota-manager-for-laravel-vkdcfqv00) · Medium · 4 upvotes · 0 comments
- [Tashil: Laravel Subscription Plans and Feature Usage Limits](https://daily.dev/posts/tashil-laravel-subscription-plans-and-feature-usage-limits-jku5f91rj) · Laravel News · 17 upvotes · 0 comments
- [Enforce Per-Action Waiting Periods in Laravel with Cooldown](https://daily.dev/posts/enforce-per-action-waiting-periods-in-laravel-with-cooldown-i43ru6dfm) · Laravel News · 22 upvotes · 1 comments
- [Scheduled Autoscaling for Laravel Cloud](https://daily.dev/posts/scheduled-autoscaling-for-laravel-cloud-vbjvmbx7o) · Laravel · 8 upvotes · 1 comments

---

Tags: [#php](https://daily.dev/tags/php), [#laravel](https://daily.dev/tags/laravel)

[View this post on daily.dev](https://daily.dev/posts/laravel-quota-usage-budgets-for-calendar-periods-idwexf35e)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Laravel Quota: Usage Budgets for Calendar Periods","url":"https://daily.dev/posts/laravel-quota-usage-budgets-for-calendar-periods-idwexf35e","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/laravel-quota-usage-budgets-for-calendar-periods-idwexf35e"},"datePublished":"2026-07-14T13:04:02.361Z","dateModified":"2026-09-13T21:29:35.448Z","description":"Laravel Quota is a package for tracking and enforcing cumulative usage budgets across calendar periods (daily, monthly, etc.), distinct from Laravel's built-in...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/426caf32a02f31833c2078446b68519a?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/426caf32a02f31833c2078446b68519a?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Laravel News","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Laravel News","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/ln","url":"https://daily.dev/sources/ln"},"commentCount":2,"discussionUrl":"https://daily.dev/posts/laravel-quota-usage-budgets-for-calendar-periods-idwexf35e","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":39},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":2}],"keywords":"php,laravel","timeRequired":"PT3M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Laravel News","item":"https://daily.dev/sources/ln"},{"@type":"ListItem","position":3,"name":"Laravel Quota: Usage Budgets for Calendar Periods"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/laravel-quota-usage-budgets-for-calendar-periods-idwexf35e#faq","mainEntity":[{"@type":"Question","name":"How is Laravel Quota different from Laravel's built-in RateLimiter?","acceptedAnswer":{"@type":"Answer","text":"Laravel Quota tracks cumulative usage against a budget that resets on a calendar boundary (like 1,000 API queries per day or 50 PDF exports per month), while RateLimiter throttles bursts of traffic in a sliding window. Quota can also persist counts in a database rather than only in cache, which matters when usage is tied to billing. Developers comparing rate limiting and usage-budget approaches can track Laravel ecosystem package releases like this on daily.dev."}},{"@type":"Question","name":"How do I add a per-user monthly usage quota to a Laravel route?","acceptedAnswer":{"@type":"Answer","text":"Attach the quota route middleware with a name, limit, and period, for example middleware('quota:exports,50,month'). Capacity is checked before the route runs, but the quota is only consumed once the response returns 2xx or 3xx, so a failed request or validation error doesn't cost the user anything. Laravel developers shipping metered features can follow package deep dives like this on daily.dev."}},{"@type":"Question","name":"Which PHP and Laravel versions does the zaber-dev/laravel-quota package support?","acceptedAnswer":{"@type":"Answer","text":"It requires PHP 8.2 and supports Laravel versions 11, 12, and 13. Install it via composer require zaber-dev/laravel-quota, publish the config with vendor:publish, and run php artisan migrate to set up the quotas table for the database backend. Teams tracking Laravel package compatibility before adopting new tools can follow releases like this on daily.dev."}}]}
```

