I'm having trouble setting up Laravel after watching a YouTube tutorial. When I try the command ``laravel new firstwebsite``, I get this error: "In CurlFactory.php line 200: cURL error 6: Could not resolve host: cabinet.laravel.com". Is there a fix for this?
2 Answers
You might be experiencing a DNS or network issue. I suggest checking your internet connection. Switching to a public DNS, like Google’s, can help too. Also, consider running `composer create-project laravel/laravel firstwebsite` instead of the `laravel new` command to bypass the issue altogether.
It looks like the website you’re trying to reach doesn’t exist anymore. The tutorial might be outdated, so I recommend checking the official Laravel installation guide instead.
Thanks for the tip! I'll try that out.