mirror of
https://github.com/koel/koel
synced 2024-12-24 03:23:06 +00:00
16 lines
296 B
PHP
16 lines
296 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 config('app.trusted_hosts');
|
|
}
|
|
}
|