protected function getSearchParameter()
    {
        if (strpos($this->search, '+')) {
            $words = preg_split('/[\s\+]+/', $this->search);

            return '%' . implode('% && %', $words) . '%';
        }
        $words = explode(' ', $this->search);

        return '%' . implode('% || %', $words) . '%';
    }
protected function getSearchParameter()
    {
        if (strpos($this->search, '+')) {
            $words = preg_split('/[\s\+]+/', $this->search);

            return '%' . implode('% && %', $words) . '%';
        }
        $words = explode(' ', $this->search);

        return '%' . implode('% || %', $words) . '%';
    }
protected function getSearchParameter ( ) { if ( strpos ( $ this -> search , '+' ) ) { $ words = preg_split ( '/[\s\+]+/' , $ this -> search ) ; return '%' . implode ( '% && %' , $ words ) . '%' ; } $ words = explode ( ' ' , $ this -> search ) ; return '%' . implode ( '% || %' , $ words ) . '%' ; }
This is an internal helper method to get the search words prepared to
be passed to the expression builder.

@return string
This is an internal helper method to get the search words prepared to be passed to the expression builder .