protected function replayMacros(Builder $query)
    {
        foreach ($this->macroBuffer as $macro) {
            $query->{$macro['method']}(...$macro['parameters']);
        }

        return $query;
    }
protected function replayMacros(Builder $query)
    {
        foreach ($this->macroBuffer as $macro) {
            $query->{$macro['method']}(...$macro['parameters']);
        }

        return $query;
    }
protected function replayMacros ( Builder $ query ) { foreach ( $ this -> macroBuffer as $ macro ) { $ query -> { $ macro [ 'method' ] } ( ... $ macro [ 'parameters' ] ) ; } return $ query ; }
Replay stored macro calls on the actual related instance.

@param  \Illuminate\Database\Eloquent\Builder  $query
@return \Illuminate\Database\Eloquent\Builder
Replay stored macro calls on the actual related instance .