Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to run Laravel project in browser using VS Code

I have an existing Laravel project, which I want to run in my browser, using VS Code. How do I do this?

like image 523
Fred Avatar asked Jan 29 '23 04:01

Fred


1 Answers

There's a built-in terminal in vs code (on a different tab somewhere in the bottom), you can use it to serve your project by a local webserver, with the following command:

php artisan serve

After that you can see your project in your browser (localhost:8000 by default).

Please note this might not work out of the box on Windows.

like image 151
Bálint Budavölgyi Avatar answered Feb 05 '23 15:02

Bálint Budavölgyi