1. Go to this page and download the library: Download onvardgmbh/laravel-filters library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
onvardgmbh / laravel-filters example snippets
return [
. . .
/*
|--------------------------------------------------------------------------
| Autoloaded Service Providers
|--------------------------------------------------------------------------
|
| The service providers listed here will be automatically loaded on the
| request to your application. Feel free to add your own services to
| this array to grant expanded functionality to your applications.
|
*/
'providers' => [
. . .
/*
* The FilterServiceProvider needs to be inserted BEFORE App\Providers\RouteServiceProvider::class,
*/
Onvard\Filter\FilterServiceProvider::class,
App\Providers\RouteServiceProvider::class,
],
. . .
];