create laravel project with specific version code example

Example 1: install laravel specific version using composer

composer create-project --prefer-dist laravel/laravel blog "6.*"

Example 2: create laravel project specific version

composer create-project laravel/laravel="5.1.*" appName

Example 3: create new laravel project with specific version

composer create-project laravel/laravel=7.0 my-project-name --prefer-dist

Example 4: composer create project laravel with version

composer create-project laravel/laravel=4.1.27 your-project-name --prefer-dist