mirror of
https://github.com/koel/koel
synced 2024-12-25 03:53:05 +00:00
19 lines
332 B
PHP
19 lines
332 B
PHP
|
<?php
|
||
|
|
||
|
namespace App\Http\Middleware;
|
||
|
|
||
|
use Illuminate\Http\Middleware\TrustHosts as IlluminateTrustHost;
|
||
|
|
||
|
class TrustHosts extends IlluminateTrustHost
|
||
|
{
|
||
|
/**
|
||
|
* @return array<int, string>
|
||
|
*/
|
||
|
public function hosts(): array
|
||
|
{
|
||
|
return [
|
||
|
$this->allSubdomainsOfApplicationUrl(),
|
||
|
];
|
||
|
}
|
||
|
}
|