1. Go to https://getcomposer.org/download/ to download and install Compose. Point the installation directory to the current php.ini
2. Download the Laravel installation package through the command line tool
implement:
1.composer global require "laravel/installer" and wait for the installation to complete
2. laravel new blog Create a blog
directory named and have installed all Laravel dependencies
3. The web path points to public/index.php under the directory file
Encountered a problem "The installation directory is missing the Vendor folder"
Solution
method one:
Go to php.ini to check whether the following three extensions are enabled
extension=php_fileinfo.dll
extension=php_mbstring.dll
extension=php_openssl.dll
There is no need to restart the server to modify php.ini.
Method Two:
Update the composer version and clear the cache
composer self-update --preview
composer clearcache
Method three:
Set up composer China mirror
Modify composer’s global configuration file (recommended method)
Open a command line window (windows users) or console (Linux, Mac users) and execute the following command:
composer config -g repo.packagist composer https://packagist.phpcomposer.com
Then execute composer install in the project
Then execute the composer create project command: composer create-project --prefer-dist laravel/laravel blog