Provides searching, searching with ranges, and sorting
You can install the package via composer:
composer require jianjye/laravel-basic-search
\LaravelBasicSearch::search($request, $model, $fields, $ranges, $sorts);
\LaravelBasicSearch::fuzzySearch($request, $model, $fields, $ranges, $sorts);
$dates = ['date_field' => 'd-m-Y'];
\LaravelBasicSearch::search($request, $model, $fields, $ranges, $sorts, $dates);
\LaravelBasicSearch::links($request, $sorts);
\LaravelBasicSearch::icons($request, $sorts);
php vendor/phpunit/phpunit/phpunit
The MIT License (MIT). Please see License File for more information.