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
Eloquent Criteria

Eloquent Criteria Laravel Package

alex-storozhenko/eloquent-criteria

A lightweight Laravel package for applying reusable criteria to Eloquent queries. Encapsulate filters and query logic in dedicated criteria classes, then compose them on models or repositories for cleaner, testable, and more maintainable database code.

View on GitHub
Deep Wiki
Context7

Eloquent Criteria is a lightweight Laravel package that brings the Criteria pattern to Eloquent queries, letting you extract reusable filtering, sorting, and query logic into dedicated classes instead of cluttering models and controllers. Compose criteria on query builders to keep your data-access layer clean, testable, and easy to extend.

  • Encapsulate complex query conditions in reusable criteria classes
  • Chain and compose multiple criteria on any Eloquent builder
  • Keep models and controllers free of filtering logic
  • Improve testability of query behavior in isolation
  • Simple, framework-native API with no heavy dependencies
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.
dbravoan/dbcms-admin-theme-dbcms
dbravoan/dbcms-theme-db-cyber
dbravoan/dbcms-blocks-basic
dbravoan/dbcms-module-content-audit
dbravoan/dbcms-module-ai-assistant
paygate-to/paygate-php
padosoft/askmydocs-connector-base
defstudio/supercharged-carbon
bernskioldmedia/laravel-matomo
bernskioldmedia/laravel-harvest
bernskiold/laravel-data-scrubber
bernskiold/laravel-currency-converter
bernskiold/laravel-campaign-monitor
bernskioldmedia/laravel-autotranslate
siberfx/telegram-bot
roy-sandip/laravel-view-extended
gregsphotography/site-builder-core
roy-sandip/laravel-view
anodyne/blade-fluentui-icons
webx-ui/module-catalog-collections