Skip to content

Kirby 5.1.2

$uri->domain()

Returns the domain without scheme, path or query. Includes auth part when not empty. Includes port number when different from 80 or 443.

$uri->domain(): string|null

Return types

stringornull

This method modifies the existing $uri object it is applied to and returns it again.

Parent class

Kirby\Http\Uri