Weave Code
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

Query Filter Laravel Package

laravie/query-filter

Laravie Query Filter adds a clean, reusable way to filter Eloquent queries from request input. Define filter classes and apply them to models to handle searching, sorting, and conditional constraints without cluttering controllers or repositories.

View on GitHub
Deep Wiki
Context7
v4.1.0

Added

  • Support for Laravel Framework 11.
v4.0.0

Changes

  • Laravel Framework updated require minimum 10.0 and above.
    • Support new Illuminate\Contracts\Database\Query\Expression
  • Remove Laravie\QueryFilter\Column::getOriginalValue(), use Laravie\QueryFilter\Column::getValue() insteads.
  • Laravie\QueryFilter\Field no longer implements Stringable.
v3.3.0

Changes

  • Added support for Laravel Framework 9.
v3.2.1

Changes

  • Improves generic types docblock.
v3.2.0

Added

  • Added support for PHP 8.1.
v3.1.0

Added

  • Added configurable wildcardSearchVariants().
$searchable = (new Searchable(
    'Administrator', ['name', 'roles.name']
))->wildcardSearchVariants(['%{keyword}%']); 

return $searchable->apply($query)->get(); 
v3.0.0

Added

  • Added Laravie\QueryFilter\Filters\PrimaryKeySearch and Laravie\QueryFilter\Filters\MorphRelationSearch.

Changes

  • Moved field, JSON and Relation search to classes:
    • Laravie\QueryFilter\Filters\FieldSearch
    • Laravie\QueryFilter\Filters\JsonFieldSearch
    • Laravie\QueryFilter\Filters\RelationSearch
  • Utilise JSON selector parser from illuminate/database.

Breaking Changes

  • Moved Laravie\QueryFilter\Value\Field to Laravie\QueryFilter\Field.
  • Moved Laravie\QueryFilter\Value\Keyword to Laravie\QueryFilter\Keyword.
v2.1.0

Added

  • Added ability to disable wildcard searching using noWildcardSearching() method (reverse of allowWildcardSearching()) from Searchable, Taxanomy and Field classes.
  • Added ability to set wildcard character to be replaced using wildcardCharacter(), this can be disabled by setting it to null.
v2.0.0

Changes

  • Laravel Framework updated require minimum 8.0 and above.

Deprecated

  • Remove deprecated Laravie\QueryFilter\Value\Keywords.
v1.8.0

Changes

  • Allow to get search keyword using Laravie\QueryFilter\Searchable::searchKeyword().
v1.7.0

Changes

  • Avoid ambiguous column name when search with related fields using Eloquent.
v1.6.2

Fixes

  • Avoid sanitizing unicode characters. #4
v1.6.1

Added

  • Added support for Laravel Framework 7.0+.
v1.6.0

Changes

  • Sanitize againsts SQL wildcard attacks.
v1.5.0

Added

Deprecated

  • Deprecate Laravie\QueryFilter\Value\Keywords.
v1.4.0

Changes

  • Refactor Laravie\QueryFilter\Taxanomy and Laravie\QueryFilter\Value\Keywords.
v1.3.0

Changes

  • Taxanomy should skipped if tagged values is equivalent to empty string.
v1.2.0

Changes

  • Validate relationship field and JSON path to not include invalid column name structure.
v1.1.0

Changes

  • Use strpos() instead of Str::contains() when possible.
v1.0.2

Fixes

  • Fixes generated search keywords when it only contains either % or *.
v1.0.1

Changes

  • Allow to be used with laravel/framework 5.8.+.
v1.0.0

Initial stable release.

  • Laravie\QueryFilter\Orderable from orchestra/support-core.
  • Laravie\QueryFilter\Searchable from orchestra/support-core.
  • Laravie\QueryFilter\Taxonomy from orchestra/model.
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.
calmfox/watch-sylius
damienfern/grpc-symfony-bundle
atoolo/index-bundle
atoolo/genai-bundle
coprotoai/laravel-ticket
davidjln/llm-carbon-bundle
cryonighter/valid-request-bundle
coolms/taxonomy-bundle
coolms/field-bundle
articulate-orm/symfony
aaix/laravel-tall-architect
ephoto/akeneo-connector
emmanuelballery/eb-plantumlbundle
emielburgman/symfony-visitor-beacon
emielburgman/symfony-visit-storage
emielburgman/symfony-security-headers
emielburgman/symfony-log-viewer
emarref/xdebug-bundle
emarref/pubnub-bundle
elriseio/finance-money-bundle