besnik / laravel-filtering
A powerful tool for developers who use Laravel framework and want to implement filtering functionality in their web applications. This package allows you to easily add filters to your queries, enabling users to search for specific data based on various criteria.
Installs: 38
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/besnik/laravel-filtering
README
php artisan vendor:publish --provider="Besnik\LaravelFiltering\LaravelFilteringServiceProvider" --tag="besnik-filtering-config"
Option field Config:
- One
[
'options' => [],
'label_key' => 'name',
'value_key' => 'id',
]
- Two
[
'model' => User::class,
'label_key' => 'name',
'value_key' => 'id',
]
- Three
[
'model' => User::class,
'label_key' => 'name',
'value_key' => 'id',
'search' => true
]
- Three
[
'api' => 'url',
'method' => 'get',
'label_key' => 'name',
'value_key' => 'id',
'search' => true //optional
]