PHP code example of karim-qaderi / zoroaster-column-filter

1. Go to this page and download the library: Download karim-qaderi/zoroaster-column-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/ */

    

karim-qaderi / zoroaster-column-filter example snippets




    namespace App\Zoroaster\Filters;

    use KarimQaderi\ZoroasterColumnFilter\ColumnFilter as Filter;

    class ColumnFilter extends Filter
    {
        public $label="فیلتر ستون";
        
        public function columns()
        {
            return [
                ''=>'—',
                'id'=>'ID',
                'title'=>'عنوان',
            ];
        }

    }
shell 
 php artisan Zoroaster:filter ColumnFilter