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

Laravel Model Filter Laravel Package

lacodix/laravel-model-filter

Filter, search, and sort Eloquent models with reusable filter classes and query-string support. Includes built-in types (string, date, number, enum), relation/nested relation filtering, custom complex logic, and filter visualisation.

View on GitHub
Deep Wiki
Context7

title: Installation weight: 3

You can install the package via composer:

composer require lacodix/laravel-model-filter

Config file

The package brings a config file and views with translations, that can be published.

php artisan vendor:publish --tag="model-filter-config"

This is the content of the published config file:

return [
    'date_format' => 'Y-m-d',
    'search_query_value_name' => 'search',
    'search_query_fields_name' => 'search_for',
];

Views for filter components

You can publish the view components with:

php artisan vendor:publish --tag="lacodix-filter-views"

Translation files for extended filters

You can publish the translation files with:

php artisan vendor:publish --tag="model-filter-translations"

Translations are only needed, if you use one of the extended filters like the TrashedFilter.

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