protected function addAllFilter($search)
    {
        $this->builder = $this->builder->where(
            function ($query) use ($search) {
                foreach ($this->columns as $column) {
                    $query->orWhere(
                        new raw($this->getRawColumnQuery($column)),
                        'like',
                        '%' . $search . '%'
                    );
                }
            }
        );
    }
protected function addAllFilter($search)
    {
        $this->builder = $this->builder->where(
            function ($query) use ($search) {
                foreach ($this->columns as $column) {
                    $query->orWhere(
                        new raw($this->getRawColumnQuery($column)),
                        'like',
                        '%' . $search . '%'
                    );
                }
            }
        );
    }
protected function addAllFilter ( $ search ) { $ this -> builder = $ this -> builder -> where ( function ( $ query ) use ( $ search ) { foreach ( $ this -> columns as $ column ) { $ query -> orWhere ( new raw ( $ this -> getRawColumnQuery ( $ column ) ) , 'like' , '%' . $ search . '%' ) ; } } ) ; }
Searches in all the columns.
@param $search
Searches in all the columns .