I have installed Composer, Laravel, and PHP 7.1.22 with all extensions.
现在我try 使用"laravel new projectname"创建一个新项目.它抛出下面的异常.我如何解决这个问题?
[GuzzleHttp\Exception\ConnectException]
I have installed Composer, Laravel, and PHP 7.1.22 with all extensions.
现在我try 使用"laravel new projectname"创建一个新项目.它抛出下面的异常.我如何解决这个问题?
[GuzzleHttp\Exception\ConnectException]
If the laravel
command fail you can try with composer create-project
:
composer create-project --prefer-dist laravel/laravel projectname