PHP code example of hchamran / laravel-filter
1. Go to this page and download the library: Download hchamran/laravel-filter 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/ */
hchamran / laravel-filter example snippets
'providers' => [
// for laravel 5.4 and below
HChamran\LaravelFilter\Providers\FilterServiceProvider::class,
]
use Filterable;
public function fields()
{
return [
'title', 'excerpt', 'price'
];
}
filter(thisIsField, thisIsValue)
php artisan vendor:publish