1
0
mirror of https://github.com/laravel/valet.git synced 2026-02-06 16:50:09 +01:00
Commit Graph

35 Commits

Author SHA1 Message Date
driesvints
2c3e2f3da1 Fix code styling 2024-06-18 16:58:03 +00:00
driesvints
03bb9cc131 Fix code styling 2023-09-21 19:31:00 +00:00
Matt Stauffer
088667d0ca Merge pull request #1422 from drbyte/stopdnsmasq
Add "valet stop dnsmasq" option
2023-08-26 22:47:18 -04:00
mattstauffer
d4ee503ec7 Fix code styling 2023-08-11 13:04:11 +00:00
Matt Stauffer
2320d15f7d Update cli/Valet/DnsMasq.php
Co-authored-by: Mateus Junges <mateus@junges.dev>
2023-08-11 09:03:30 -04:00
Marcel Pociot
0a33373bb6 Only delete resolver when Herd is not installed 2023-07-26 15:54:51 +02:00
Chris Brown
269d157b0a Add "valet stop dnsmasq" option
Fixes #1419

Adds:
- `valet stop dnsmasq`
- `valet stop all` (which includes php, nginx, dnsmasq)
- When `valet stop` is called without a service name, a message indicates that dnsmasq can also be stopped via `valet stop dnsmasq`
- Aside: phpfpm now also displays a message when stopping; previously it was silent.
2023-06-20 16:35:59 -04:00
Matt Stauffer
8784458dfe Drop "superfluous" phpdoc tags (per Pint) 2023-02-18 23:20:03 -05:00
Matt Stauffer
6a920bd5a9 Merge Pint config 2023-02-13 15:39:44 -05:00
driesvints
cda928d1ed Fix code styling 2023-02-13 17:06:56 +00:00
Matt Stauffer
4c2c4a1238 Drop unnecessary doc blocks (#1339)
* Drop unnecessary doc blocks

* Apply fixes from StyleCI

Co-authored-by: StyleCI Bot <bot@styleci.io>
2023-01-11 09:14:39 -05:00
StyleCI Bot
f0f1b57bd8 Apply fixes from StyleCI 2022-12-21 02:51:35 +00:00
Matt Stauffer
75d43a42ea Use constructor promotion 2022-12-20 21:51:15 -05:00
Matt Stauffer
da4f98db80 Add type hints and return type hints to DnsMasq 2022-12-19 16:11:07 -05:00
Jerry Price
021a4d1a5c use getStub to allow custom stub files 2022-04-13 10:50:41 -04:00
Taylor Otwell
101abeae0e Apply fixes from StyleCI 2021-12-06 10:40:37 +00:00
Mikaël Popowicz
2d5ee9d7cc Add loopback command. 2021-02-21 23:21:12 +01:00
soilSpoon
2c06a5d4f0 Modify the paths of packages to be based on brew prefix
- brew
- dnsmasq
- nginx
- php-fpm
- log
- etc
2020-11-15 14:38:18 +09:00
Chris Brown
dfd333a997 Remove unnecessary imports 2020-01-07 11:29:30 -05:00
Chris Brown
8dc5836492 Cleanup old tld refs when switching tld or uninstalling
Previously we would leave old tld stubs around; while it's harmless, it's less tidy.
2020-01-07 11:28:50 -05:00
Chris Brown
6e01bfb5f4 Allow Valet to uninstall itself
`valet uninstall` only displays information about how to manually uninstall and clean up after Valet.

This PR adds a `--force` parameter, which will forcefully remove Valet and the Homebrew services it installs, as well as clean up the config files and log files.
But for a few post-uninstall composer dependencies, cleanup is very thorough.

This brings idempotency to both `valet install` and `valet uninstall --force`

(There may still be edge cases where other Homebrew or composer packages might create interference with install/uninstall, but this makes things much easier to self-troubleshoot.)
2019-12-05 22:19:55 -05:00
Matt Stauffer
d301e4ac11 Merge pull request #856 from drbyte/dnsmasq-customconfig
Use custom dnsmasq.d folder for easier config and support
2019-12-05 15:15:18 -05:00
Chris Brown
02ad7f44ff Dnsmasq allows use of a common config folder, much like nginx and php do.
This PR changes Valet's default config process to empower this feature, which makes installation less intrusive, and easier to identify and remove valet-specific customizations.

This will make for easier troubleshooting
... and easier customizing (such as dropping in a custom logging config, additional TLDs, alternate DNS resolvers, etc)

Also removes old dnsmasq configs used by prior Valet versions
2019-12-02 15:02:56 -05:00
Chris Brown
cfa8c216fa Include dnsmasq in valet start/restart command
While it's rare that the dnsmasq won't be started, it feels incomplete to not include the service when starting/restarting valet, since valet depends on it.
2019-11-30 16:34:08 -05:00
Matt Stauffer
7eb1aec410 Merge pull request #449 from eberkund/master
Move ~/.valet to ~/.config/valet
2018-08-30 08:33:28 -04:00
Erik Berkun-Drevnig
19fe60880c Fix DnsMasq path, remove incorrect use of rewrite secure 2017-10-22 16:39:50 -04:00
Chris Brown
58e4645fe2 Change valet domain command to valet tld
Fixes #144
".test" or ".dev" is really a TLD, not a "domain" in the conventional sense.
Changing the command to `valet tld` more accurately reflects the purpose of the command (to set or get the configured TLD served by Valet)

The use of `valet domain` is currently preserved as an alias for `valet tld`, but will be removed at a later date.
2017-10-17 15:47:39 -04:00
Chris Brown
bd5c998019 Change valet domain command to valet tld
Fixes #144
".dev" is really a TLD, not a "domain" in the conventional sense.
Changing the command to `valet tld` more accurately reflects the purpose of the command (to set or get the configured TLD served by Valet)
2017-10-17 13:18:11 -04:00
Adam Wathan
ac06650483 Set default listen-address in dnsmasq config
I was having issues where dnsmasq was trying to listen on some weird
IPv6 address by default; setting this explicitly solves that.
2017-10-17 12:04:35 -04:00
Lasse Rafn
cf6602f2ea Update DnsMasq.php 2017-10-01 00:11:46 +02:00
Erik Berkun-Drevnig
0fd37b0fed Change paths from ~/.valet to ~/.config/valet 2017-09-28 14:44:14 -04:00
Chris Brown
70fd176838 Update DnsMasq.php 2017-09-18 12:00:36 -04:00
Lasse Rafn
670f68c5b5 Update DnsMasq.php
.localhost default domain
2017-09-18 14:23:53 +02:00
Taylor Otwell
fd595b5c71 run commands as sudo 2016-05-11 19:40:44 -05:00
Taylor Otwell
97f7ae2342 organize better 2016-05-10 08:29:24 -05:00