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

568 Commits

Author SHA1 Message Date
Matt Stauffer
04eb1b9683 Merge pull request #1531 from Tugzrida/fix-openssl-strict-mode
fix(TLS): create OpenSSL strict-mode compliant certs
2025-10-04 10:22:53 -04:00
Cameron Steel
631fb7a1ca remove unused $confPath 2025-09-18 12:33:34 +10:00
mattstauffer
01c393d99b Fix code styling 2025-09-15 19:40:48 +00:00
Lukas Bableck
ed8ca453f2 Update ContaoValetDriver to support current Contao versions 2025-09-15 20:38:53 +02:00
Cameron Steel
45e4ce17db fix(TLS): create OpenSSL strict-mode compliant certs 2025-09-15 22:22:04 +10:00
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
Ngô Quốc Đạt
1008c92610 wip 2025-07-10 16:38:49 +07:00
Ngô Quốc Đạt
463f60cd05 Add support for PHP 8.5 2025-07-10 16:38:17 +07:00
Ngô Quốc Đạt
8670d26c9c Add support for PHP 8.5 2025-07-10 16:35:43 +07: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
Austin Drummond
ba2d5727ed Update CraftValetDriver.php
When applying https://github.com/craftcms/security-patches to a Craft project, the fix for [CVE-2024-56145](https://github.com/advisories/GHSA-2p6p-9rc9-62j9) breaks sites served by Valet (and Herd). 

This fix allows these sites to work when using Valet (and Herd).
2025-05-01 21:59:37 -04: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
crynobone
c4c650d567 Fix code styling 2025-02-12 01:38:26 +00:00
Mischa Braam
ff82b3ee10 Change latest php version to 8.4 2024-12-11 10:07:08 +01:00
Matt Stauffer
ff4b7675c4 Merge pull request #1504 from mitchkramez/bugfix-loopback-regex-fix
Fixes bad regex for loopback replacement for Issue #1503
2024-12-09 20:39:19 -05:00
Matt Stauffer
440bb128ad Merge pull request #1498 from adrum/feature/renew-ca
Add the ability to renew the Certificate Authority certificate
2024-12-09 20:37:05 -05:00
Mitch Kramer
2b9f4940a5 Fixes bad regex for loopback replacement 2024-11-26 10:43:03 -06:00
Supian M
7efa837b5e Add support for PHP 8.4
Include PHP 8.4 in the list of supported PHP versions in both Valet Brew and GitHub Actions test matrix. This ensures compatibility and testing for the latest PHP release.
2024-11-17 20:49:59 +08:00
Austin Drummond
3c0015c305 add the ability to see the Certificate Authority expiration date 2024-11-15 12:09:11 -05:00
Austin Drummond
072859eced add the ability to renew the CA when renewing all certs 2024-11-15 12:00:33 -05:00
mattstauffer
13da2f7dde Fix code styling 2024-08-25 03:36:57 +00:00
Matt Stauffer
ea57d98621 Refactor heavily nested cloudflared currentTunnelUrl
Co-Authored-By: Mateus Junges <mateus@junges.dev>
2024-08-24 22:27:35 -05:00
Matt Stauffer
374eaa0d59 Make domain required in currentTunnelUrl
These methods are never passed null anyway.

Co-Authored-By: Mateus Junges <mateus@junges.dev>
2024-08-24 22:19:28 -05:00
Matt Stauffer
628997d835 Extract Cloudflared tunnels method 2024-08-24 19:33:17 -05:00
Matt Stauffer
81efb8eee1 Merge branch 'cloudflared' of https://github.com/rcknr/valet into rcknr-cloudflared 2024-08-24 15:49:01 -05:00
driesvints
fc1b23b523 Fix code styling 2024-08-02 08:24:13 +00:00
Sergii Kauk
dce6b3ca6e Merge branch 'master' into cloudflared 2024-07-30 10:53:52 +02:00
Austin Drummond
e7c0dbadd6 update phrasing 2024-06-21 13:46:10 -04:00
Austin Drummond
a39a7b0937 prevent the old cert from being removed if the trust ca command is canceled 2024-06-21 13:14:48 -04:00
Austin Drummond
72845a36f7 throw exception if trust CA is canceled 2024-06-21 13:14:32 -04:00
driesvints
2c3e2f3da1 Fix code styling 2024-06-18 16:58:03 +00:00
Matt Stauffer
78657cdb35 Merge pull request #1486 from antonL95/feat_add_nette_framework_driver
Adding support for Nette Framework.
2024-06-03 10:43:12 -04:00
Matt Stauffer
0844c565a5 Merge pull request #1477 from adriaanzon/fix-path-keys
Add values() call to reset keys after modifying paths
2024-06-02 09:43:01 -04:00
Anton
4a43ab03db Updated serves method to better determine that it's actually nette project. 2024-06-01 14:57:23 +02:00
mattstauffer
cb1cc54927 Fix code styling 2024-05-31 22:45:28 +00:00
Matt Stauffer
3003ccb18e Merge pull request #1471 from Werbschaft/patch-1
Update KirbyValetDriver.php
2024-05-31 18:45:03 -04:00
mattstauffer
6118bc2668 Fix code styling 2024-05-31 22:34:01 +00:00
Matt Stauffer
2da59f9934 Merge pull request #1463 from adrum/feature/trust-ca-cert
Trust CA Certificate only
2024-05-31 18:33:37 -04:00
Anton
8cf9bd2b91 Adding support for Nette Framework. 2024-05-14 12:00:43 +02:00
Ahmed Ammar
0f3ab1fec8 Ignore invalid paths (#1478) 2024-05-07 15:22:40 +02:00
Adriaan Zonnenberg
b637376b2e Add values() call to reset keys after modifying paths 2024-03-22 21:47:46 +01:00
Oli
40c6b2891b Update KirbyValetDriver.php
This makes it possible to open PHP files again, see this discussion. The solution from rasteiner works perfectly. You can also have a look @pedroborges ?

https://forum.getkirby.com/t/use-php-and-kirby-in-css-file/30724
2024-02-19 09:49:37 +01:00
Sergii Kauk
a5707751c8 Update Brew formula 2024-01-22 16:27:58 +01:00
Sergii Kauk
4c5fd953fc A bit of refactoring 2024-01-08 09:57:46 +01:00
Sergii Kauk
ca288d4066 Add a new share tool, cloudflared 2024-01-07 18:18:10 +01:00
Chris Brown
e3e5bea388 Allow renew() to be called without parameters (#1465)
A reasonable default is set here, consistent with the default set in other places.

Fixes #1464
Updates #1461
2024-01-01 10:12:56 +01:00
Austin Drummond
c0a2c7ed57 Merge branch 'master' into feature/trust-ca-cert 2023-12-22 12:42:24 -05:00
Austin Drummond
c79bc9851a only trust the CA, not the individual cert 2023-12-22 12:41:55 -05:00