PHP code example of mdhesari / laravel-query-filters

1. Go to this page and download the library: Download mdhesari/laravel-query-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/ */

    

mdhesari / laravel-query-filters example snippets



public function index(\Illuminate\Http\Request $request, \Mdhesari\LaravelQueryFilters\Actions\ApplyQueryFilters $applyQueryFilters) {
    return $applyQueryFilters(\MyModel::query(), $request->all())->paginate();
}