DEV Community

Cover image for Setup Laragon As Local Server For Laravel Project
Arman Rahman
Arman Rahman

Posted on

Setup Laragon As Local Server For Laravel Project

Laragon is a powerful local development environment and server stack for PHP web applications. It provides a seamless and user-friendly experience for developers, offering a complete solution with features like an Apache web server, MySQL database, PHP interpreter, and additional tools like Git, Composer, and Node.js. Laragon simplifies the setup and management of development environments, allowing developers to focus on building and testing their applications efficiently.

So first you need to download laragon from there official site by visiting -

https://laragon.org/docs/install.html

This is a window of Laragon after Installation

After that I would like to change some Preferences -

This is a window of Laragon Preference Manu

then set Services and Port like given -

This is a window of Laragon Services and Port

I do prefer Ngnix instead of Apache server.

After that put your laravel projects on the following directory -

C:\laragon\www

Note: You may change directory as you want form preference > General Tab

preference > General Tab

Now, you can access your projects from your browser by the folder name and .test domain like -

myfoldername.test

Extra Tips:

You can change root file path of laragon projects -

Menu > Nginx > sites-enabled

Menu > Nginx > sites-enabled

Change root path:

root "C:/laragon/www/myfoldername/public";

Laragon File Root Path Change

Heroku

Tired of jumping between terminals, dashboards, and code?

Check out this demo showcasing how tools like Cursor can connect to Heroku through the MCP, letting you trigger actions like deployments, scaling, or provisioning—all without leaving your editor.

Learn More

Top comments (0)

Sentry image

👀 Watch Us Break (and Fix) a Laravel App with Sentry

In this on-demand workshop, we push a Laravel + React app to the edge—then show exactly how to debug it using Sentry. From error tracking to Session Replays and full-stack performance monitoring, it's all here. Bonus: watch AI bots pitch in to clean up the mess.

🎥 Watch now + follow along

👋 Kindness is contagious

Explore this practical breakdown on DEV’s open platform, where developers from every background come together to push boundaries. No matter your experience, your viewpoint enriches the conversation.

Dropping a simple “thank you” or question in the comments goes a long way in supporting authors—your feedback helps ideas evolve.

At DEV, shared discovery drives progress and builds lasting bonds. If this post resonated, a quick nod of appreciation can make all the difference.

Okay