PHP code example of ravaelles / filterable

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

    

ravaelles / filterable example snippets


php artisan vendor:publish
 php
$users = User::orderBy('id')
    ->searchable()
	->filterable($filters)
	->paginate(10);