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