protected function searchableQuery()
    {
        $query = $this->makeQuery();

        if ($this->paginated) {
            $query->limit($this->pageLimitter()->limit());
            $query->offset($this->pageLimitter()->offset());
        }

        return $query;
    }
protected function searchableQuery()
    {
        $query = $this->makeQuery();

        if ($this->paginated) {
            $query->limit($this->pageLimitter()->limit());
            $query->offset($this->pageLimitter()->offset());
        }

        return $query;
    }
protected function searchableQuery ( ) { $ query = $ this -> makeQuery ( ) ; if ( $ this -> paginated ) { $ query -> limit ( $ this -> pageLimitter ( ) -> limit ( ) ) ; $ query -> offset ( $ this -> pageLimitter ( ) -> offset ( ) ) ; } return $ query ; }
Prepare and return the searchable query.

@return \Illuminate\Database\Eloquent\Builder
Prepare and return the searchable query .