private static function applySearch(&$query, $search)
    {
        foreach ($search as $name => $filters) {
            foreach ($filters as $filter) {
                self::applySearchFilter($query, $filter);
            }
        }
    }
private static function applySearch(&$query, $search)
    {
        foreach ($search as $name => $filters) {
            foreach ($filters as $filter) {
                self::applySearchFilter($query, $filter);
            }
        }
    }
private static function applySearch ( & $ query , $ search ) { foreach ( $ search as $ name => $ filters ) { foreach ( $ filters as $ filter ) { self :: applySearchFilter ( $ query , $ filter ) ; } } }
Apply search items to the query.

@param Builder $query
@param array   $search

@return void
Apply search items to the query .