Search by

besnik / laravel-filtering

alemran

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.

Package info

github.com/besnik-org/laravel-filtering

pkg:composer/besnik/laravel-filtering

Statistics

Installs: 38

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

1.1.0 2023-05-23 09:18 UTC

This package is not auto-updated.

Last update: 2026-09-09 01:13:07 UTC


README

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 
 ]