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

Choych's avatar

How can I use http://projectname.test instead of http://127.0.0.1:8000/

So I use the command PHP artisan serve to run a server and I can view my Laravel site at http://127.0.0.1:8000/ but I want to run my website at the APP_URL= 'http://projectName.test' how can I do this? I see a lot of videos online where it just spins up that way automatically. Thank you in advance.

0 likes
16 replies
Choych's avatar

@Sinnbeck Valet looks perfect but can I use it on Windows? Or is there an different package I could use for Windows?

Choych's avatar

@Sinnbeck This is crazy how difficult this is. I just want to be able to test my website on the public internet so I can test e-mail password reset and socialite. Am I even on the right path?

Sinnbeck's avatar

@Choych oh sadly that has nothing to do with that. It's only to make it look pretty and easy to remember. To expose it on the internet i personally use a service called ngrok

https://ngrok.com/

Cruorzy's avatar

@Choych to test sociallite stuff you probably need a exposed website to the internet and SSL.

Personally i just setup forge to do this, has a bit of a price but its also a awesome service to deploy your website later on.

Sinnbeck's avatar

@Choych be aware that forge is for deploying your production website. Personally I use ploi for the same :)

Choych's avatar

@Sinnbeck is there a laravel package for getting a test website exposed to the internet with a db?

Choych's avatar

@Sinnbeck I want to be able to interact with APIs when developing the website. How do I achieve this?

Sinnbeck's avatar
Sinnbeck
Best Answer
Level 102

@Choych ngrok is exactly that. Expose your local dev url to the web. Personally I prefer ngrok, but expose as @niush suggests is an alternative. You can try both if you want. They do the same thing

2 likes
successdav's avatar

In regards to the original question, you can use Laragon on windows to prettying your url and easy to remember

1 like

Please or to participate in this conversation.