When I type laravel new blog
I get the following error.
In RequestException.php line 113:
Server error: GET http://cabinet.laravel.com/latest.zi
If you use laravel homestead, maybe you should update the box itself.
Dont forget to backup your databases.
From the directory where Homestead is installed, run the update command:
vagrant box update
vagrant destroy
vagrant up
For a more detailed description, see: How to update your Laravel Homestead Box
Do this:
composer create-project laravel/laravel example-app
if the following fails:
composer global remove laravel/installer
composer global require laravel/installer
Updating does not work. Reinstalling do now.
composer global remove laravel/installer
composer global require laravel/installer
The workaround of this problem is getting latest version of Laravel Installer as per New Laravel Installer via composer global require "laravel/installer:^4.0"
verify the version using $ laravel -v
It should return "Laravel Installer 4.1.0"
Check your PHP version:
php --version
It has to be >=7.3. If it isn't you have to upgrade your PHP version.
You can download the latest stable version here