Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Perpage Trait

Perpage Trait Laravel Package

quantumtecnology/perpage-trait

A lightweight Laravel trait that adds flexible per-page pagination to your models and queries. Read and validate the per_page request parameter, apply sensible defaults and maximum limits, and keep list endpoints consistent with minimal code.

View on GitHub
Deep Wiki
Context7

perpage-trait is a small Laravel package that adds a reusable PerPage trait to your Eloquent models, letting you standardize pagination size across an application without repeating query logic. It reads a configurable per-page value (with sensible defaults and optional request overrides) and applies it consistently wherever you paginate.

  • Drop-in trait for any Eloquent model
  • Configurable default and maximum per-page limits
  • Optional request-based override with validation
  • Keeps controllers and queries clean and consistent
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
tequilarapido/trackit
gregsphotography/site-builder-filament
cabaoctavio/laravel-query-log
gregsphotography/site-builder-components
io-digital/clickatell
snowsoft/laravel-admin
oxygen/auth
relicsoftware/barakah-payment-gateway
tobya/work-with-composer
equipc/laravel-email-validator
equipc/laravel-email-database-log
adedsec/nova-translated-labels
wazza/laravel-db-encryption
hokny/laravel-generator
vonsogt/backup
jengo/queues
jeremykenedy/laravel-observability
coleus/frame
thtg88/journalism
filagora/filagora-ai-forums