@m615 This is a known issue with the brew curl-openssl version... run the following...
brew uninstall curl-openssl --ignore-dependencies
brew services restart php
valet restart
that should solve this.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I'm building 4 e-commerce sites for a client. These 4 sites will use the same code base and be deployed as separate applications. I'm then setting up a CMS that is using Nova to manage all the product data, users and orders from all the sites.
The CMS's database will be the single source of truth for all data across all the ecom apps. My approach will be that the CMS will expose an API for products to be listed on the ecomm sites by requesting a list of products via an API call to the CMS application.
I have a basic product function and route setup that looks something like this.
Route::get('products/{domain}', [ProductsController::class, 'getProductsByDomain']);
In my e-commerce controller, I'm trying to do something like this.
$products = Http::get('http://ecomm-admin.test/api/products/avid');
return view('products')->with('products', $products);
Both apps are hosted locally right now using Valet and I'm getting the following error from my e-commerce application when trying to retrieve the products from the API call.
Illuminate \ Http \ Client \ ConnectionException
cURL error 6: Could not resolve:ecomm-admin.test (Domain name not found) (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for http://ecomm-admin.test/api/products/avid
Previous exceptions
cURL error 6: Could not resolve: ecomm-admin.test (Domain name not found) (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for http://ecomm-admin.test/api/products/avid (0)
Please or to participate in this conversation.