TrustHosts
class TrustHosts (View source)
Properties
protected Application | $app | The application instance. |
|
static protected | $alwaysTrust | ||
static protected bool|null | $subdomains | Indicates whether subdomains of the application URL should be trusted. |
Methods
void
array
hosts()
Get the host patterns that should be trusted.
static
at(array|callable $hosts, bool $subdomains = true)
No description
bool
shouldSpecifyTrustedHosts()
Determine if the application should specify trusted hosts.
string|null
allSubdomainsOfApplicationUrl()
Get a regular expression matching the application URL and all of its subdomains.
static void
flushState()
Flush the state of the middleware.
Details
void
__construct(Application $app)
Create a new middleware instance.
array
hosts()
Get the host patterns that should be trusted.
static
at(array|callable $hosts, bool $subdomains = true)
No description
protected bool
shouldSpecifyTrustedHosts()
Determine if the application should specify trusted hosts.
protected string|null
allSubdomainsOfApplicationUrl()
Get a regular expression matching the application URL and all of its subdomains.
static void
flushState()
Flush the state of the middleware.