1// To install and use a specific version, you can enter it at the end of the command.
2// For example using version 5.8 ==>
3composer create-project --prefer-dist laravel/laravel projectName "5.8.*"
1composer global require laravel/installer
2
3laravel new example-app
4
5cd example-app
6
7php artisan serve
1You can create project by 2 ways:
2
3First is installing it without defining version:
4composer create-project laravel/laravel yourProjectName
5
6Secondly you can install by defining version:
7composer create-project laravel/laravel="VersionOfYourChoice" yourProjectName