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

mathematikboy's avatar

Starting Laravel for Local Network

Hi everyone, I would like to start Laravel application from my computer having windows 10 and then view the application from other computer of my local network. However with "php artisan serve" , I can not find see the link to use for the network.

When I start with "npx serve" and use the link I get for network, and it shows all the file contained in Laravel application folder even if I go to the Laravel public folder.

Could any help me to find a good solution so that I can show my application to my colleagues who works on different computer than mine.

I am using windows network and windows computers.

0 likes
8 replies
mathematikboy's avatar

@sinnbeck thank you for your answer! I tried this way, but I can't access the site from my smart phone for example ! with npx serve or "yarn serve" I can easily access but it as I mentioned previously it displays all the files of the laravel start folder but not as website.

1 like
Snapey's avatar

you need a webserver that serves php (ie, not node).

Use php artisan serve from the project root, or use expose if your test users are on an external network

1 like
mathematikboy's avatar

@snapey : thank you for the answer . my test users are in same network . Expose seems to be good start to make Laravel application available for other test users . If you have an idea how to use expose for laravel, I would be glad to have the information. thank you

mathematikboy's avatar

@snapey : Thank you for your information. Expose seems to be promising. If you know a description how to use it for laravel, I would be thankful

Snapey's avatar

there is comprehensive documentation on the beyondco.de website

1 like

Please or to participate in this conversation.