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

116 Commits

Author SHA1 Message Date
Matt Stauffer
1c62421915 Drop homebrew-core tap
See #1382

Co-Authored-By: Vincent Klaiber <vinkla@users.noreply.github.com>
2025-08-18 08:38:58 -04:00
mattstauffer
6fcf62efa2 Fix code styling 2025-06-19 04:42:20 +00:00
Marc Rodriguez
10947733a2 Create php-memory-limits.ini only one time
Change how the php-memory-limits.ini is managed because when changed between PHP versions all the configuration added previously is overrided and it a waste of time if you work with several PHP versions during the day
2025-06-18 11:27:56 +02:00
Saibotk
0525673051 fix(php-fpm): correct socket creation
While my PR #1514 fixed recreating the FPM configs, it introduced a different issue:

Due to the use of `utilizedPhpVersions()`, the code now also configured the FPM config for the alias `php` version.
This caused it to invoke the configure function with an empty version string and thus overwriting the FPM config for (in my case) the php@8.4 config templated with `valet.sock` instead of the correct `valet84.sock`.

The nginx sites that were configured to proxy their requests to the `valet84.sock` then failed because it did not exist anymore.

We fixed this by always including the actual linked PHP version via the `linkedPhp` function. This returns `php8.4` instead of `php`.

`php` is an alias anyway and this also removes another unnecessary service restart call. Previously, this would also try to restart the `php` service via brew which was already restarted through the restart of `php@8.4`, which is an alias in brew.

This also fixes an issue with the previous PR, to correctly symlink `valet.sock` again to the linked PHP version, which we oversaw.
2025-04-25 23:03:44 +02:00
Saibotk
f670b62010 fix(php-fpm): correctly reconfigure all versions
This previously only reapplied the configuration for the linked version.
Because it is recommended to run valet install again after a brew upgrade, it is necessary to update all utilized PHP versions.

On brew upgrades, some versions received the default www.conf again. This would leave the user with a broken setup until they either call `valet use php@X.X` for all the versions or isolate a site again with the version.

This commit fixes the behavior by rerunning the configuration step on all php versions. This is more consistent, because in the next line all utilized PHP versions are also restarted.
2025-04-15 15:36:15 +02:00
driesvints
2c3e2f3da1 Fix code styling 2024-06-18 16:58:03 +00:00
mattstauffer
e75f238b22 Fix code styling 2023-12-21 03:25:35 +00:00
driesvints
f37a474700 Fix code styling 2023-09-05 15:50:18 +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
driesvints
c1ef300469 Fix code styling 2023-07-21 03:30:59 +00: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
831779cec0 Remove more docblocks 2023-01-11 11:40:32 -05: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
Matt Stauffer
75d43a42ea Use constructor promotion 2022-12-20 21:51:15 -05:00
StyleCI Bot
c714b82fcd Apply fixes from StyleCI 2022-12-20 17:13:46 +00:00
Matt Stauffer
ac4b8f6f40 Add type hints and return types to PhpFpm 2022-12-20 12:13:34 -05:00
Matt Stauffer
8246ee6319 Merge pull request #1238 from jjpmann/feature/custom-site-stubs
use getStub to allow custom stub files
2022-12-01 20:25:41 -05:00
Dries Vints
d0d42acff7 PHP 8.2 support (#1279)
* PHP 8.2 support

* wip

* Apply fixes from StyleCI

* wip

* wip

* wip

* Update tests.yml

Co-authored-by: StyleCI Bot <bot@styleci.io>
2022-09-08 13:37:17 +02:00
Jerry Price
e668e77f3d Merge branch 'master' into feature/custom-site-stubs 2022-07-08 09:21:51 -04:00
Matt Stauffer
3772761881 Add extra info output to phpfpm install method 2022-04-18 13:38:16 -04:00
NasirNobin
0267da704e remove preg_replace deprecation warning 2022-04-16 18:47:38 +06:00
Jerry Price
021a4d1a5c use getStub to allow custom stub files 2022-04-13 10:50:41 -04:00
Matt Stauffer
29b2f45719 Add --site to isolate and unisolate commands
- Add --site to isolate
- Add --site to unisolate
- Refactor some tests
- Update Site@getSiteUrl to throw an exception instead of returning false
- Fix a few minor typos/grammatical issues
2022-03-21 01:25:23 -04:00
NasirNobin
9fdc02021a Fix Homebrew PHP default www pools issue 2022-03-16 19:12:44 +06:00
Matt Stauffer
b09a9163fa Inline site check in unisolate command 2022-03-14 15:02:16 -04:00
Matt Stauffer
b1d9b2b669 Clean up 2022-03-14 15:00:05 -04:00
Matt Stauffer
383aa62137 Change magic isolation config string to "ISOLATED_PHP_VERSION"
Co-Authored-By: Jacob Baker-Kretzmar <18192441+bakerkretzmar@users.noreply.github.com>
2022-03-14 14:40:45 -04:00
Matt Stauffer
e4c7a9b3e5 Symlink valet.sock *after* restarting so it's not deleted by restarting PHP-FPM
Co-Authored-By: Jacob Baker-Kretzmar <18192441+bakerkretzmar@users.noreply.github.com>
2022-03-14 14:22:37 -04:00
Matt Stauffer
b8885a4115 Move deleting valet.sock into install()
Co-Authored-By: Jacob Baker-Kretzmar <18192441+bakerkretzmar@users.noreply.github.com>
2022-03-14 14:10:49 -04:00
Matt Stauffer
17cda5dc79 Drop todos 2022-03-14 13:58:52 -04:00
Matt Stauffer
984d7eb699 Add PHP Version to the isolated command 2022-03-14 13:41:48 -04:00
Matt Stauffer
118e0a3692 Update str_contains to strpos 2022-03-14 12:55:20 -04:00
StyleCI Bot
9b8c41e3d3 Apply fixes from StyleCI 2022-03-14 04:16:45 +00:00
Matt Stauffer
95aa03977c Add command to list isolated sites 2022-03-14 00:16:36 -04:00
StyleCI Bot
fd47384768 Apply fixes from StyleCI 2022-03-14 02:18:58 +00:00
Matt Stauffer
4ab6f46870 Merge branch 'mes/symlink-valet-socks' of github.com:laravel/valet into mes/symlink-valet-socks 2022-03-13 22:18:47 -04:00
Matt Stauffer
530e4c30dd Update normalizePhpVersion regex
Handle "php@8.1"
Simplify the entire method into one block

Co-Authored-By: Nathan Morgan <nathan@fuelingtheweb.com>
2022-03-13 22:17:50 -04:00
Matt Stauffer
7226da5bb7 Update valet.sock symlink 2022-03-13 22:17:11 -04:00
StyleCI Bot
89fd8bc30b Apply fixes from StyleCI 2022-03-13 04:29:11 +00:00
Matt Stauffer
51742b3795 Make primary valet.sock a symlink to an existing version 2022-03-12 23:29:01 -05:00
Matt Stauffer
3570c748a0 Clean up PhpFPM readability 2022-03-12 22:37:57 -05:00
Matt Stauffer
592354877d Rename isolateDirectory 2022-03-12 22:28:25 -05:00
StyleCI Bot
0a677e2d53 Apply fixes from StyleCI 2022-03-12 05:23:47 +00:00
Matt Stauffer
5aa253ad6d Move string concat to one line 2022-03-12 00:23:35 -05:00
Matt Stauffer
55c7dcb99d Move string concat to one line 2022-03-12 00:23:00 -05:00
Matt Stauffer
33c797f9ef Drop need to pass sock to isolate command 2022-03-12 00:20:40 -05:00
StyleCI Bot
e797774ade Apply fixes from StyleCI 2022-03-12 05:06:07 +00:00
Matt Stauffer
eefc06b07f Drop PHP 5.6; extract site-specific PHP version isolation to its own commands 2022-03-12 00:05:51 -05:00
Nasir Uddin Nobin
9a5d30bb69 Tests for Parallel PHP Version Support 2022-02-18 15:14:57 +06:00
Nasir Uddin Nobin
cc41e3c19f Update cli/Valet/PhpFpm.php
Co-authored-by: Matt Stauffer <mattstauffer@users.noreply.github.com>
2022-02-18 05:59:22 +06:00