src/Routing/Router.php
/**
	 * Registers a domain. Routes registered after this declaration will only apply if the current request domain
	 * matches the specified domain. The domain supports curly braces to define a variable, for example
	 * "{subdomain}.example.com".
	 *
	 * If the second $callback parameter is provided, it creates a group instead (alias of createDomainGroup).
	 *
	 * @param string $domain
	 * @param Closure $callback
	 * @return RouteGroup
	 */
Registers a domain. Routes registered after this declaration will only apply if the current request domain
matches the specified domain. The domain supports curly braces to define a variable, for example
"{subdomain}.example.com".

If the second $callback parameter is provided, it creates a group instead (alias of createDomainGroup).

@param string $domain
@param Closure $callback
@return RouteGroup
Registers a domain . Routes registered after this declaration will only apply if the current request domain matches the specified domain . The domain supports curly braces to define a variable for example " { subdomain } . example . com " . If the second $callback parameter is provided it creates a group instead ( alias of createDomainGroup ) . @param string $domain @param Closure $callback @return RouteGroup
public function createDomain($domain, Closure $callback = null) {
		if (!is_null($callback)) {
			return $this->createDomainGroup($domain, $callback);
		}
		$this->currentGroup->setDomain($domain);
	}
public function createDomain ( $ domain , Closure $ callback = null ) { if ( ! is_null ( $ callback ) ) { return $ this -> createDomainGroup ( $ domain , $ callback ) ; } $ this -> currentGroup -> setDomain ( $ domain ) ; }
Registers a domain.
Registers a domain .