install latest version of laravel code example
Example 1: install laravel 5.8
composer create-project --prefer-dist laravel/laravel blog "5.8.*"
Example 2: insall laravel
composer global require laravel/installer
laravel new blog
Example 3: install laravel
laravel install on windows
-----------------------------------
1-composer install
https://getcomposer.org/download/
2-laravel install using composer
composer global require laravel/installer
3-create new project
laravel new blog
cd blog
4-serve project to localhost
php artisan serve
Example 4: laravel installer version
Laravel Installer Version Check
laravel -version
ex. laravel -version
Result : Laravel Installer 4.1.1
Example 5: how to install laravel
composer global require "laravel/installer=~1.1"