1. Install composer https://getcomposer.org/
2. Install the git windows client tool https://git-scm.com/downloads
3. Change the composer source address
composer config -g repo.packagist composer https://packagist.phpcomposer.php
4. Download the required laravel version https://github.com/laravel/laravel/releases
5. Unzip the downloaded laravel to a suitable location: /path/to/laravel
6. cd /path/to/laravel
7. composer update
8. cp .env.example .env
9. php artisan key:generate
10. Create a mysql database and modify the corresponding configuration of the .env file
The following are optional:
11.php artisan make:auth
12. php artisan migrate
If an error is reported: Specified key was too long error
Try to modify:
$table->string('email')->index();
$table->string('email')->unique();
Change it to:
$table->string('email', 100)->index();
$table->string('email', 100)->unique();