Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 1 |
TrustHosts | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
hosts | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 |
1 | <?php |
2 | |
3 | namespace App\Http\Middleware; |
4 | |
5 | use Illuminate\Http\Middleware\TrustHosts as Middleware; |
6 | |
7 | class TrustHosts extends Middleware |
8 | { |
9 | /** |
10 | * Get the host patterns that should be trusted. |
11 | * |
12 | * @return array |
13 | */ |
14 | public function hosts() |
15 | { |
16 | return [ |
17 | $this->allSubdomainsOfApplicationUrl(), |
18 | ]; |
19 | } |
20 | } |