TrustHosts

abstract class Winter\Storm\Http\Middleware\TrustHosts

Properties

protected $app : Illuminate\Contracts\Foundation\Application

The application instance.

Methods

public __construct (Illuminate\Contracts\Foundation\Application $app) : void

Create a new middleware instance.

Parameters
Property Description
$app
Illuminate\Contracts\Foundation\Application
Returns
void

public handle (Illuminate\Http\Request $request, callable $next) : Illuminate\Http\Response

Handle the incoming request.

Parameters
Property Description
$request
Illuminate\Http\Request
$next
callable
Returns
Illuminate\Http\Response

public hosts () : array

Get the host patterns that should be trusted.

Returns
array

protected allSubdomainsOfApplicationUrl () : string | null

Get a regular expression matching the application URL and all of its subdomains.

Returns
string | null

protected shouldSpecifyTrustedHosts () : bool

Determine if the application should specify trusted hosts.

Returns
bool

Extended by

Class Description
CheckForTrustedHost
Copyright © 2024 Winter CMS