kdion4891 / laravel-livewire-tables

A dynamic, responsive Laravel Livewire table component with searching, sorting, checkboxes, and pagination.
302 stars 41 forks source link

Searchable not working #24

Open lovecoding-git opened 4 years ago

lovecoding-git commented 4 years ago

Laravel Framework 7.7.1, Laravel-livewire-tables: 1.6


class InsiderFilingTable extends TableComponent
{
    public $table_class = 'table-hover';
    public $thead_class = 'thead-light';
    public $checkbox = false;
    public $per_page = 20;
    public $searchable = true;
    public $sort_attribute = 'col1';

   public function query()
    {
        return InsiderFiling::query();
    }

    public function columns()
    {
        return [
            Column::make('PS', 'col1')->searchable()->sortable(),
            Column::make('Ticker', 'col2')->searchable()->sortable(),
            Column::make('Insider', 'col3')->searchable()->sortable(),
            Column::make('Comp', 'col4')->searchable()->sortable(),

        ];
    }
}

No error, searchable is not working. Here is website url.

http://insiderfollower.tk/insider-trading-filing

Thank you