Valet installation produces error in Nginx.php
P粉032649413
P粉032649413 2024-03-28 00:29:19
0
1
366

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粉032649413
P粉032649413

reply all(1)
P粉237647645

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!

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template