mirror of
https://github.com/koel/koel
synced 2024-12-26 12:33: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');
|
|
}
|
|
}
|