1
0
mirror of https://github.com/laravel/valet.git synced 2026-02-05 08:30:07 +01:00
Commit Graph

23 Commits

Author SHA1 Message Date
Dries Vints
f980900727 Fix guzzle issues 2021-12-23 09:21:45 +01:00
Marco Rieser
3e04917298 Access tag_name directly
Since `$response` is the response body now the body below is obsolete.
2021-12-22 17:57:55 +01:00
Bram Ceulemans
4c98f63b96 Replace HTTPFul with Guzzle 2021-12-20 16:49:06 +01:00
Taylor Otwell
101abeae0e Apply fixes from StyleCI 2021-12-06 10:40:37 +00:00
Chris Brown
383c1d009f Fix valet bin dir linking for ARM / M1 macs
Fixes #1023

Ref #992
2021-01-18 12:19:56 -05:00
Chris Brown
e10f788cea Internal update: use existing function instead of duplicated code 2020-01-04 10:05:25 -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
Chris Brown
fee6fec141 Fix "sudo: sorry, you are not allowed to preserve the environment" messages
If you've previously run `valet trust` to allow valet to run without specifying `sudo` repeatedly or entering your password with various valet commands, recent updates to MacOS may give you a `sudo: sorry, you are not allowed to preserve the environment` response when trying to run those `valet` commands.

The fix is in updating the sudoers entry that `valet trust` creates.

This PR tells valet how to update the sudoers entry so that this message doesn't continue.

YOU WILL NEED TO RE-RUN `valet trust` IF YOU HAD PREVIOUSLY RUN IT, after installing this update, in order for this code change to have any effect.

(Technical explanation: the sudoers protections have become stricter, so we have to be more explicit that we do indeed want environment variables to flow through to the sudo user's environment when using valet via sudoers entries.)
2019-05-14 16:55:27 -04:00
Sahib J. Leo
001058414b #691 Surround with quotes all paths which might contain blank spaces. 2018-12-27 11:24:41 -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
Matt Stauffer
6587fb53a5 Add 'trust' command 2018-01-04 16:36:16 -05:00
Erik Berkun-Drevnig
f33bff81e9 Make sure Sites dir is linked 2017-11-27 01:39:27 -05:00
Leon Jacobs
85c439b8c0 Remove sudoers entries 2017-03-04 16:53:49 +02:00
Daniel Morris
fe6fb947f7 Consistency changes (#60)
* Correct the return type annotation in a serves method

* Type-hint the driver in the abstract ValetDriver

* Correct the return type-hint in the sample ValetDriver

* Remove the return afrom the restartLinkedPhp method

* Remove the return annotation from the Caddy constructor

* Remove the return annotation from the Valet configuration constructor

* Removed the return from the prependPath method of the Configuration class

* Removed the return from the appendAsUser method of the Filesystem class

* Removed the return annotation from the Site constructor

* Corrected the parameter annotation of the link method in the Site class

* Order use statements by length in PhpFpm

* Remove the return annotation from the Valet constructor
2016-05-12 21:17:32 -05:00
Taylor Otwell
064a62f3a6 fix file paths on extensions 2016-05-12 08:36:45 -05:00
Taylor Otwell
14588a40d8 load extensions 2016-05-11 20:32:53 -05:00
Taylor Otwell
fd595b5c71 run commands as sudo 2016-05-11 19:40:44 -05:00
Taylor Otwell
d98fce6f08 extract logic 2016-05-11 15:29:04 -05:00
Taylor Otwell
fbe2fe6fac Tweaking a few things. 2016-05-11 15:22:20 -05:00
Taylor Otwell
d94a9cae9d fix path 2016-05-11 10:29:55 -05:00
Taylor Otwell
0139d506f5 fix comment 2016-05-10 21:55:00 -05:00
Taylor Otwell
01df3b1012 move method to brew class 2016-05-10 21:48:44 -05:00
Taylor Otwell
b22c60daca add files 2016-05-10 21:45:59 -05:00