protected function getSearchableColumns()
    {
        $columns = $this->getColumns();
        $searchable = [];

        foreach ($columns as $column) {
            if (!$column->searchable) {
                continue;
            }

            $searchable[] = $column;
        }

        return $searchable;
    }
protected function getSearchableColumns()
    {
        $columns = $this->getColumns();
        $searchable = [];

        foreach ($columns as $column) {
            if (!$column->searchable) {
                continue;
            }

            $searchable[] = $column;
        }

        return $searchable;
    }
protected function getSearchableColumns ( ) { $ columns = $ this -> getColumns ( ) ; $ searchable = [ ] ; foreach ( $ columns as $ column ) { if ( ! $ column -> searchable ) { continue ; } $ searchable [ ] = $ column ; } return $ searchable ; }
Returns a collection of columns which can be searched.
@return array
Returns a collection of columns which can be searched .