Support the ongoing development of Laravel.io →
posted 5 years ago

Hi,

I'm using secure url secure_url() to generate the doamin url of my application, but i'm getting the localhost url.

Expected result: http://www.domain-name.com

Actual output: http://localhost.com

Doubt: Do i need to change or configure app_url in .env file.

Last updated 3 years ago.
0

used it:-

url()->full()

0

url('/') gives the expected output

http://www.domain-name.com

0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.