1composer global require laravel/installer
2
3laravel new example-app
4
5php artisan serve
1// To install and use a specific version, you can enter it at the end of the command.
2// For example using version 5.8 ==>
3composer create-project --prefer-dist laravel/laravel projectName "5.8.*"