PHP code example of hellozach / laravel-filterable

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

    

hellozach / laravel-filterable example snippets


use HelloZach\LaravelFilterable\Traits\Filterable;

use Filterable;

protected $filterable = [
    // Column names
];

protected $filterableCasts = [
    // 'column_name' => 'method_name'
];