instal composer laravel code example

Example 1: laravel install

composer create-project laravel/laravel <example-app>

Example 2: install laravel on windows

composer global require laravel/installer

Example 3: laravel install

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

Example 4: laravel install

composer global require laravel/installer

laravel new example-app

cd example-app

php artisan serve

Example 5: laravel instal

composer global require laravel/installer

laravel new example-app

php artisan serve

Example 6: laravel download

composer global require "laravel/installer=~1.1"