Back

Secure url does not generate url with domain name


Venkat Aadithan posted 5 days 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.

Azx Ster replied 5 days ago Solution

used it:-

url()->full()

Venkat Aadithan replied 5 days ago

url('/') gives the expected output

http://www.domain-name.com


Sign in to participate in this thread!



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