composer install laravel code example
Example 1: create laravel 6 project using composer
composer create-project --prefer-dist laravel/laravel blog "6.*"
Example 2: install laravel 5.8
composer create-project --prefer-dist laravel/laravel blog "5.8.*"
Example 3: install laravel
composer create-project --prefer-dist laravel/laravel blog
Example 4: laravel install
composer create-project laravel/laravel <example-app>
Example 5: laravel install by composer
composer create-project --prefer-dist laravel/laravel blog
cd example-app
php artisan serve
Example 6: composer install laravel
composer global require laravel/installer