composer create-project laravel/laravel example-app
cd example-app
php artisan serve
composer create-project --prefer-dist laravel/laravel:^7.0 blog
composer create-project --prefer-dist laravel/laravel projectName "6.0.*"
composer create-project --prefer-dist laravel/laravel projectName "7.0.*"
composer create-project --prefer-dist laravel/laravel projectName "8.0.*"
just run this command(make sure to have Composer installed on your machine from: https://getcomposer.org/download/):
composer create-project laravel/laravel project-name
<!-- The curl option works with sail (Docker) -->
curl -s https://laravel.build/app-name | bash
cd app-name
sail up -d
<!-- OR -->
composer create-project --prefer-dist laravel/laravel app-name "8.*"
//Just change the 'x' for the version that you want
composer create-project laravel/laravel="x.*" Project
composer create-project laravel/laravel your-project-name version
composer create-project laravel/laravel new_project
composer create-project laravel/laravel=4.1.27 your-project-name --prefer-dist