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

Sentry image

Make it make sense

Only get the information you need to fix your code that’s broken with Sentry.

Start debugging →

Top comments (0)

Tiger Data image

🐯 🚀 Timescale is now TigerData: Building the Modern PostgreSQL for the Analytical and Agentic Era

We’ve quietly evolved from a time-series database into the modern PostgreSQL for today’s and tomorrow’s computing, built for performance, scale, and the agentic future.

So we’re changing our name: from Timescale to TigerData. Not to change who we are, but to reflect who we’ve become. TigerData is bold, fast, and built to power the next era of software.

Read more

👋 Kindness is contagious

Explore this insightful write-up, celebrated by our thriving DEV Community. Developers everywhere are invited to contribute and elevate our shared expertise.

A simple "thank you" can brighten someone’s day—leave your appreciation in the comments!

On DEV, knowledge-sharing fuels our progress and strengthens our community ties. Found this useful? A quick thank you to the author makes all the difference.

Okay