composer create-project laravel/laravel example-app
cd example-app
php artisan servecomposer create-project --prefer-dist laravel/laravel blog "6.*"php artisan serve
// The original answer is:
/*
The full command works like this:
php artisan serve --host=<host IP address> --port=<port to use>
php artisan serve --host=127.0.0.1 --port=8080
*/composer create-project --prefer-dist laravel/laravel blog// To install and use a specific version, you can enter it at the end of the command.
// For example using version 5.8 ==>
composer create-project --prefer-dist laravel/laravel projectName "5.8.*"composer global require laravel/installer