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