public function compileMatches(Builder $query, $matches)
    {
        if ( ! is_array($matches) || empty($matches)) return '';

        $prepared = array();

        foreach ($matches as $match)
        {
            $method = 'prepareMatch'. ucfirst($match['type']);
            $prepared[] = $this->$method($match);
        }

        return "MATCH " . implode(', ', $prepared);
    }
public function compileMatches(Builder $query, $matches)
    {
        if ( ! is_array($matches) || empty($matches)) return '';

        $prepared = array();

        foreach ($matches as $match)
        {
            $method = 'prepareMatch'. ucfirst($match['type']);
            $prepared[] = $this->$method($match);
        }

        return "MATCH " . implode(', ', $prepared);
    }
public function compileMatches ( Builder $ query , $ matches ) { if ( ! is_array ( $ matches ) || empty ( $ matches ) ) return '' ; $ prepared = array ( ) ; foreach ( $ matches as $ match ) { $ method = 'prepareMatch' . ucfirst ( $ match [ 'type' ] ) ; $ prepared [ ] = $ this -> $ method ( $ match ) ; } return "MATCH " . implode ( ', ' , $ prepared ) ; }
Compile the MATCH for a query with relationships.

@param  \Illuminate\Database\Query\Builder $query
@param  array  $matches
@return string
Compile the MATCH for a query with relationships .