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

binggle's avatar

vscode Live Server Laravel setting.

Hi . I need help .

I want to use 'live server' extension with laravel project in vscode .

I need how to setup 'live server' extension for laravel.

Can somebody give me some tips?

0 likes
4 replies
binggle's avatar

Sorry but I installed extension already.

I followed the direction for 'Servers and Frameworks' ..

but I just can see the index.php . the ""Live Server" doest not run php file.

It shows just file and folder list on root folder.

More tips ?

1 like
ismaile's avatar

Ok so, on top of the Live Server vscode extension, you also have installed the browser extension following the setup guide. Now, Live server works in a specific way. When you start the server, it is indeed going to show the files and folder of the root project folder.

At the top, you can see that the URL is something like: http://127.0.0.1:5000, that's the Live Server address that you have to put in your web extension settings.

Besides, you have a specific URL that you use to access your web app locally such as http://myapp.test or http://localhost. That's the Actual Server Address in the Live Server web extension settings.

Once you start live server from vscode, you should visit your web app in a new tab or refresh it if there is already a tab. Please remember to refresh the web app URL after starting the Live Server, then you won't have to refresh the browser as long as the Live Server is up.

3 likes

Please or to participate in this conversation.