command to install laravel package which are compatible with the environment instead of latest package code example
Example 1: laravel create project command with version
composer create-project --prefer-dist laravel/laravel blog "6.*"
Example 2: laravel 5.8 installation
composer create-project --prefer-dist laravel/laravel blog "5.8.*"