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
Laravel Api Query Handler

Laravel Api Query Handler Laravel Package

luciano-jr/laravel-api-query-handler

Laravel API Query Handler parses and applies API query parameters in your Laravel apps—filtering, sorting, pagination, and relationship includes—so you can build flexible, consistent endpoints without repeating request-handling logic in every controller.

View on GitHub
Deep Wiki
Context7

Laravel API Query Handler turns incoming request query strings into clean, chainable Eloquent queries. Instead of scattering if ($request->has(...)) checks across controllers, you declare which filters, sorts, and includes an endpoint supports, and the handler applies them consistently.

It keeps controllers thin and API behaviour predictable, with sensible defaults and configuration that plays nicely with validation and API resources.

  • Filtering — map query parameters to columns, operators, and custom scopes.
  • Sorting — whitelist sortable fields with ?sort=-created_at syntax.
  • Pagination — consistent per_page/page handling with metadata.
  • Relationship includes — eager-load only allowed relations to avoid N+1 queries.
  • Safe by default — only explicitly permitted parameters are ever applied.
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.
middlewares/firewall
qubiqx/montapacking
nyoncode/laravel-package-console
pnscripts/filament-broadquill-lite
pnscripts/laravel-sentfold-lite
vleap/mx-sdk-laravel-internal
twidpay/utils
htetmyathlaing/scout-elasticsearch-driver
artisan-toolbox/front-awesome
ls/client-assistant
users-au/laravel-client
robertmarney/lara-hierarchial-collections
simonschaufi/rule-doc-generator
emissaoja/emissaoja
blackbricksoftware/gravityforms-civicrm-form-processor
al-rahabi/fancy-crud
jinas/dhivatar-component
mltstephane/laravel-quality
bernskiold/laravel-talentlms
bernskioldmedia/laravel-form-architect