Wednesday, 26 Feb, 2025 -21

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
How to install WordPress
02 Apr, 2024 view: 2083
img
Xampp Tutorial Create Your Own Local Test Server
02 Apr, 2024 view: 1184
img
How to Install Laravel
02 Apr, 2024 view: 944
img
PHP is not recognized as an internal or external command
02 Apr, 2024 view: 724
img
How to Install Composer on Windows
01 Apr, 2024 view: 723
img
Summernote image upload
01 Nov, 2023 view: 668
img
How to clear select2 selected value in js
01 Nov, 2023 view: 494
img
Zipping and Unzipping Files in Linux
02 Apr, 2024 view: 442
img
How to add Datepicker in Bootstrap
26 Apr, 2024 view: 440
img
How to Import a MySQL Database using Command Line
02 Apr, 2024 view: 431
img
How to Installation Laragon
01 Apr, 2024 view: 284
img
How to Installing an SSL certificate on your server using cPanel
06 Apr, 2024 view: 255
img
Paypal Payment Gateway Integration With Laravel
06 Apr, 2024 view: 216
img
How to Use Laravel Middleware to Protect Your Application
09 Apr, 2024 view: 212
img
Laravel Authentication Tutorial
09 Apr, 2024 view: 208
img
Laravel Cache Clear Command Php Artisan Optimize
09 Apr, 2024 view: 207
img
laravel qr code generator package
18 Apr, 2024 view: 198
img
How to Integrate Stripe Payment in Laravel
06 Apr, 2024 view: 197
img
why important website development learn
10 Apr, 2024 view: 194
img
How to Install Laravel Valet on Windows
26 Feb, 2025 view: 21
img
Learn how to implement Single Sign-On (SSO) in Node.js using Passport.js and TypeScript for enhanced user experience and secure ...
26 Feb, 2025 view: 6
Trending