I'm trying to make laravel project with composer with bellow cmd cod:
composer create-project laravel/laravel laravel-santcum-api
but I get error like this:
[Composer\Downloader\TransportException]
curl error 7 while downloading https://repo.packagist.org/p2/laravel/laravel.json: Failed to connect to 127.0.0.1 p
ort 1797: Connection refused
Also I'm tried with proxy and without proxy but I give the same error in both.
I found answer:
I'm in first installation of Composer added a variable named http_proxy to my environment. The value of http_proxy is what you see in that input.
All you need to do is delete that variable from the environment: