class TrustHosts (View source)
| protected Application | $app | The application instance. | |
| static protected | $alwaysTrust | ||
| static protected bool|null | $subdomains | Indicates whether subdomains of the application URL should be trusted. |
| void | __construct(Application $app)
Create a new middleware instance. | |
| array | hosts()
Get the host patterns that should be trusted. | |
| Response | handle(Request $request, Closure $next)
Handle the incoming request. | |
| 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. |
Create a new middleware instance.
Get the host patterns that should be trusted.
No description
Determine if the application should specify trusted hosts.
Get a regular expression matching the application URL and all of its subdomains.
Flush the state of the middleware.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/11.x/Illuminate/Http/Middleware/TrustHosts.html