Retro Community

Bem-vindo à sua comunidade retrô! Aqui você descobrirá todas as informações sobre canais retrô e muito mais. Nosso objetivo é fortalecer e ampliar a visibilidade do incrível trabalho da comunidade retrô.

hero image hero image

Adicione pacote para seu projeto para limitar seus pacotes OURO, PRATA e BRONZE

Jul 16, 2024
Rafael Blum
YouTube
51
Adicione pacote para seu projeto para limitar seus pacotes OURO, PRATA e BRONZE

Laravel Package: Usage Limiter - Track SaaS Plan Consumption

A Laravel package to track, limit, & restrict usages of users, accounts, or any other model.

Features

https://www.youtube.com/watch?v=xQL9PdCCpvc

https://github.com/nabilhassen/laravel-usage-limiter

Define usage limits you need for your app per plan

  • Set reset frequency for each of your limits
  • Attach usage limits to models (e.g. User model)
  • Consume and unconsume usage limits whenever a resource is created or deleted
  • Get usage report of a specific model (e.g. User model)
  • Check and determine if a model can consume more resources
  • Manually reset consumed usage limits of a model
  • Automatically reset consumed usage limits by setting reset frequencies such as every second, every minute, every hour, every day, every month, etc and scheduling a built-in artisan command

Use cases

Basically with this package you can track your users' or any other models' usages and restrict them when they hit their maximum limits.

Example use-cases:

  • API usages per second, minute, month, etc
  • Resource creation. E.g: projects, teams, users, products, etc
  • Resource usages. E.g: storage, etc