install laravel 6 with composer code example
Example 1: laravel 7 install
composer create-project --prefer-dist laravel/laravel:^7.0 blog
Example 2: laravel install by composer
composer create-project --prefer-dist laravel/laravel blog
cd example-app
php artisan serve