install laravel 5.5 code example
Example 1: install laravel globally
composer global require laravel/installer
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