1
0
mirror of https://github.com/laravel/valet.git synced 2026-02-04 08:10:07 +01: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
2024-09-26 12:16:58 +08:00
2025-04-25 23:03:44 +02:00
2021-12-03 15:40:15 +01:00
2023-02-13 15:39:44 -05:00
2025-04-22 14:03:27 +00:00
2023-12-21 03:25:35 +00:00
2021-12-03 15:40:15 +01:00
2022-09-08 13:37:17 +02:00
2024-01-18 14:54:56 +01:00
2023-03-15 14:47:50 -04:00

Build Status Total Downloads Latest Stable Version License

Introduction

Valet is a Laravel development environment for Mac minimalists. No Vagrant, no /etc/hosts file. You can even share your sites publicly using local tunnels. Yeah, we like it too.

Laravel Valet configures your Mac to always run Nginx in the background when your machine starts. Then, using DnsMasq, Valet proxies all requests on the *.test domain to point to sites installed on your local machine.

In other words, a blazing fast Laravel development environment that uses roughly 7mb of RAM. Valet isn't a complete replacement for Vagrant or Homestead, but provides a great alternative if you want flexible basics, prefer extreme speed, or are working on a machine with a limited amount of RAM.

Official Documentation

Documentation for Valet can be found on the Laravel website.

Contributing

Thank you for considering contributing to Valet! You can read the contribution guide here.

Code of Conduct

In order to ensure that the Laravel community is welcoming to all, please review and abide by the Code of Conduct.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

License

Laravel Valet is open-sourced software licensed under the MIT license.

Description
MIRROR. Laravel's Valet repository on GitHub. (Because it is relevant to PHP Monitor as a dependency, I mirror it here.)
https://laravel.com/docs/master/valet Readme 152 MiB
Languages
PHP 98.7%
Shell 1.2%