I'm trying to setup laravel and valet. I get this error when running valet install
Fatal error: Uncaught TypeError: Valet\Site::aliasLoopback(): Argument #2 ($loopback) must be of type string, null given, called in /Users/bonds/.composer/vendor/laravel/valet/cli/Valet/Nginx.php on line 108 and defined in /Users/bonds/.composer/vendor/laravel/valet/cli/Valet/Site.php:831
I'm using the latest version of PHP (8.2.4) and running valet version 4.0.0
I can't find many similar questions to this online.
P粉2376476452024-03-28 11:22:25
Adding "loopback": "127.0.0.1",
to the ~/.config/valet/config.json
file worked for me.
I have to follow this code and assume this is a bug. Hope this helps!