Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Cronix's avatar

You're welcome. You will want to set APP_URL to http://laravel-one.localhost in your .env now. Hopefully you've been using the url(), asset(), route() and other helpers to generate your urls and that one setting is all you'd need to change to make everything work for links and things in your views.

Whenever you start a new project now, create a new vhost and set it up with a different domain for localhost. It will make your life a lot easier, especially when you transfer it to a real production host.

1 like
towhid's avatar

@CRONIX - this is also new thing for me - if i want to use url , asset, and route then must be use APP_URL link to set in .ENV file otehr wise its not work -so that was not declare any video in any series so how i know that, still i am learning new things everyday , i am trying to know every single point of laravel platform . if you want you can suggest me any thing which one faster growing me as a laravel Develoepr Thanks a lot .

Previous

Please or to participate in this conversation.