You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -193,8 +193,7 @@ For commands that are referenced as "the same as the Mac version", please refer
193
193
##### install
194
194
195
195
```
196
-
install Install Valet's services and configs
197
-
Install Valet's services and configs, and auto start Valet.
196
+
install Install Valet's services and configs, and auto start Valet.
198
197
[--xdebug] Optionally, install Xdebug for PHP.
199
198
```
200
199
@@ -212,7 +211,7 @@ This installs all Valet services:
212
211
- Acrylic DNS
213
212
- Ansicon
214
213
215
-
And it's configs in `C:\Users\Username\.config\valet`.
214
+
And it's configs in `C:/Users/Username/.config/valet`.
216
215
217
216
Once complete, Valet will automatically start the services.
218
217
@@ -790,7 +789,7 @@ link Register the current working directory as a symbolic link
790
789
[--isolate=] Optionally isolate the site to a specified PHP version
791
790
```
792
791
793
-
`link` is another way to serve directories as sites, except it serves one singular site in a directory rather than the whole directory. It does this by creating a symbolic link inside the `/.config/valet/Sites` directory, of which is a _`parked`_ directory on Valet installation.
792
+
`link` is another way to serve directories as sites, except it serves one singular site in a directory rather than the whole directory. It does this by creating a symbolic link inside the `~/.config/valet/Sites` directory, of which is a _`parked`_ directory on Valet installation.
794
793
795
794
Serving the current working directory as a site:
796
795
@@ -858,7 +857,7 @@ unlink Unlink the current working directory linked site
858
857
[name] Optionally specify the linked site name
859
858
```
860
859
861
-
`unlink` removes the current working directory's (cwd) symbolic linked site. Valet will find the linked site name using the cwd name and delete the symbolic link from the `/.config/valet/Sites/` directory.
860
+
`unlink` removes the current working directory's (cwd) symbolic linked site. Valet will find the linked site name using the cwd name and delete the symbolic link from the `~/.config/valet/Sites/` directory.
862
861
863
862
```console
864
863
$ cd /d/sites/my site
@@ -1170,7 +1169,7 @@ This site is served by [BasicValetDriver].
1170
1169
paths List all of the paths registered with Valet
1171
1170
```
1172
1171
1173
-
`paths` allows you to view all registered paths. The default path is `.config/valet/Sites`, any others are added via the [`park`](#park) command.
1172
+
`paths` allows you to view all registered paths. The default path is `~/.config/valet/Sites`, any others are added via the [`park`](#park) command.
1174
1173
1175
1174
```console
1176
1175
$ valet paths
@@ -1484,6 +1483,56 @@ To run, open a CMD terminal with Admin privileges and run this:
1484
1483
1485
1484
All services will have been stopped and you can then be able to run `composer global update`.
1486
1485
1486
+
## Valet Directories
1487
+
1488
+
Upon installation, Valet creates the following directories and config files:
1489
+
1490
+
-`~/.config/valet`
1491
+
Contains all of Valet's config files. This resides in the home directory (`C:/Users/Username/`) indicated by `~`.
1492
+
1493
+
-`~/.config/valet/CA`
1494
+
Contains Valet's generated self-signed Root CA certificate, of which all site TLS certificates are signed with.
1495
+
1496
+
-`~/.config/valet/Certificates`
1497
+
Contains all the TLS certificates for the secured sites. These files are rebuilt when running the `install` and `secure` commands.
1498
+
1499
+
-`~/.config/valet/Drivers`
1500
+
Contains any user-defined custom Valet drivers. Drivers determine how a particular framework / CMS is served. See the [Valet Docs](https://laravel.com/docs/12.x/valet#custom-valet-drivers) for information on how to create a custom driver.
1501
+
1502
+
-`~/.config/valet/Drivers/SampleValetDriver.php`
1503
+
A sample custom driver.
1504
+
1505
+
-`~/.config/valet/Extensions`
1506
+
Contains custom Valet extensions/commands. You can extend Valet and add your own commands or change existing ones. See [this comment](https://github.com/laravel/valet/issues/804#issuecomment-569731561) for more info and links to examples.
1507
+
1508
+
-`~/.config/valet/Log`
1509
+
Contains all error logs.
1510
+
1511
+
-`~/.config/valet/Nginx`
1512
+
Contains site-specific Nginx configs for any site that is isolated or secured. These files are rebuilt when running the `install`, `tld`, and `secure` commands.
1513
+
1514
+
-`~/.config/valet/Services`
1515
+
Contains the Nginx and PHP config and executable files to be able to run them as Windows services. These files are rebuilt when running the `install` command.
1516
+
-`~/.config/valet/Sites`
1517
+
Contains all of the symbolic links for any `link`ed sites.
This is an batch file to do an emergency stop and uninstall of all services. See the [Emergency Stop and Uninstall Services section](#emergency-stop-and-uninstall-services).
1527
+
1528
+
> [!WARNING]
1529
+
>
1530
+
> It's not recommended to change the config files except the custom `Drivers` and `Extensions`. Changing any other config file manually will put Valet out of sync and cause errors. Use the CLI instead and let Valet do it for you.
1531
+
1532
+
> [!CAUTION]
1533
+
>
1534
+
> You must not remove any config file (except the custom ones) without first uninstalling Valet.
1535
+
1487
1536
## Known Issues
1488
1537
1489
1538
- WSL2 distros fail because of Acrylic DNS Proxy ([microsoft/wsl#4929](https://github.com/microsoft/WSL/issues/4929)). Use `valet stop`, start WSL2 then `valet start`.
Copy file name to clipboardExpand all lines: cli/valet.php
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -41,6 +41,8 @@
41
41
Site::pruneLinks();
42
42
}
43
43
44
+
// TODO: Abstract all Xdebug related code into a separate opt-in custom extension, this could be an alternative to just deprecating Xdebug functionality altogether.
0 commit comments