Fred
Fred

Reputation: 325

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?

Upvotes: 6

Views: 21804

Answers (1)

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.

Upvotes: 11

Related Questions