Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

231
Vistas
Laravel URL Helper return IP address instead of Domain name

I have a problem when trying to create the Url using URL helper. I'm using Laravel 6.

$verify_url = url("/verify");

This is return the URL with the IP address instead of the domain name.

I don't know if it is a problem with the Apache server or the code.

Please help me. Thanks.

over 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

Adding this directive to Apache Virtual Host config seems to have fixed it: ProxyPreserveHost On

But a better way to use your urls is to name them in your routes/web.php. For ex:

Route::post('/verify', 'HomeController@verify')->name('verify');

and wherever you need to access to this url just use like this:

$verify_url = route('verify');
over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda