Files
ponzi/app/Http/Middleware/TrustHosts.php
Bram 7bf32280e2 [8.x] Add types to arrays in boilerplate (#5738)
* Add more specific types

* Update Authenticate.php

* Update Authenticate.php
2021-12-02 14:40:24 -06:00

21 lines
357 B
PHP

<?php
namespace App\Http\Middleware;
use Illuminate\Http\Middleware\TrustHosts as Middleware;
class TrustHosts extends Middleware
{
/**
* Get the host patterns that should be trusted.
*
* @return string[]
*/
public function hosts()
{
return [
$this->allSubdomainsOfApplicationUrl(),
];
}
}