How to modify the return of request()->getHttpHost()
in Laravel 5.
I used a middelware to modify $_SERVER[HTTP_HOST]
, but it was not affected.
class ModifyHttpHost
{
public function handle($request, Closure $next)
{
$_SERVER['HTTP_HOST'] = 'another.com';
return $next($request);
}
}
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2T67rKv
via IFTTT
Aucun commentaire:
Enregistrer un commentaire