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 blog image

How I fixed 20 seconds of lag for every user in just 20 minutes.

Our AI agent was running 10-20 seconds slower than it should, impacting both our own developers and our early adopters. See how I used Sentry Profiling to fix it in record time.

Read more

Top comments (0)

Image of Docusign

🛠️ Bring your solution into Docusign. Reach over 1.6M customers.

Docusign is now extensible. Overcome challenges with disconnected products and inaccessible data by bringing your solutions into Docusign and publishing to 1.6M customers in the App Center.

Learn more