public function where($where, $regex_constraint = null)
    {
        if (is_array($where)) {
            $other_rule = $where;
        } else {
            $other_rule = [$where => $regex_constraint];
        }

        $this->with = array_merge($this->with, $other_rule);

        return $this;
    }
public function where($where, $regex_constraint = null)
    {
        if (is_array($where)) {
            $other_rule = $where;
        } else {
            $other_rule = [$where => $regex_constraint];
        }

        $this->with = array_merge($this->with, $other_rule);

        return $this;
    }
public function where ( $ where , $ regex_constraint = null ) { if ( is_array ( $ where ) ) { $ other_rule = $ where ; } else { $ other_rule = [ $ where => $ regex_constraint ] ; } $ this -> with = array_merge ( $ this -> with , $ other_rule ) ; return $ this ; }
Add the url rules

@param array|string $where
@param string   $regex_constraint

@return Route
Add the url rules