Looking to hire Laravel developers? Try LaraJobs

laravel-filtering maintained by besnik

Description
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.
Author
Last update
2023/08/05 19:11 (dev-main)
License
Links
Downloads
38

Comments
comments powered by Disqus

laravel-filtering

php artisan vendor:publish --provider="Besnik\LaravelFiltering\LaravelFilteringServiceProvider" --tag="besnik-filtering-config"

Option field Config:

  1. One
 [
    'options' => [],
    'label_key' => 'name',
    'value_key' => 'id',
 ]
  1. Two
 [
    'model' => User::class,
    'label_key' => 'name',
    'value_key' => 'id',
 ]
  1. Three
 [
    'model' => User::class,
    'label_key' => 'name',
    'value_key' => 'id',
    'search' => true
 ]
  1. Three
 [
    'api' => 'url',
    'method' => 'get',
    'label_key' => 'name',
    'value_key' => 'id',
    'search' => true //optional 
 ]