Eloquent & Data Access v2

Installation

Laravel Model Filter · A Laravel package for filtering and searching models from database with ease.

Version and pages

You are reading version v2. The current documentation is v4.

Commit 47f72d9227c5 This page on GitHub

You can install the package via composer:

composer require lacodix/laravel-model-filter

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',
];

You can publish the view components with:

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

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.

Technical consultation

A package as a building block for your application.

If architecture, integration or operations are critical, let’s discuss your application as a whole.

Discuss your project