Wednesday, 26 Feb, 2025 -232

How to Install Laravel Valet on Windows

Why use Laravel Valet?

Valet is a development environment for Laravel. One of the reasons its so famous is because it runs without Nginx and Apache. It uses DnsMasq on Mac OS, and Acrylic DNS on Windows 10 to proxy all the request s to *.test domain, i.e., no more /etc/hosts


Installation requirements for Laravel Valet on Windows 10


You must first have:

your all command executed git bash or cmd  or vscode terminal 

PHP 7+

1.If your system doesn’t have PHP, make sure to install the latest version of PHP before installing Valet.

2.Composer for Windows

You must install Composer to install Valet.


Install Valet in Windows with Composer


Ensure Composer’s Global Bin Path is in System PATH

Make sure the following directory is in your Windows system PATH:



C:\Users\YourUser\AppData\Roaming\Composer\vendor\bin

Example : Environment variable:


C:\Users\HP\AppData\Roaming\Composer\vendor\bin

Here is the command to install Laravel Valet globally:

composer global require cretueusebiu/valet-windows
Next, configure Valet and register Valet’s daemon. This is to launch Valet automatically on system startup.
valet install
Park or Link Your Laravel Project
If you have multiple projects in a folder, navigate to that directory and run:
   cd path\to\your\projects
Navigate to root code folder and run this command:
valet park
If you have a single project, go inside the project folder and run
cd path\to\your\project
valet link project-name
valet link project-name
check project run url 

valet links
+----------------------+-----+----------------------------------+-------------------------------------+
| Site                 | SSL | URL                              | Path                                |
+----------------------+-----+----------------------------------+-------------------------------------+
| bangla-text-backend  |     | http://bangla-text-backend.test  | C:\laragon\www\bangla-text-backend  |
| dev-bangla-dashboard |     | http://dev-bangla-dashboard.test | C:\laragon\www\dev-bangla-dashboard |
+----------------------+-----+----------------------------------+-------------------------------------+

Tags
Most Popular
img
02 Apr, 2024 view: 2434
img
02 Apr, 2024 view: 1281
img
01 Apr, 2024 view: 1084
img
01 Nov, 2023 view: 1007
img
26 Apr, 2024 view: 643
img
02 Apr, 2024 view: 641
img
01 Apr, 2024 view: 480
img
09 Apr, 2024 view: 407
img
18 Apr, 2024 view: 402
img
16 Mar, 2025 view: 198
Trending