laravel install different ways code example
Example 1: laravel install
composer create-project laravel/laravel <example-app>
Example 2: laravel install
composer global require laravel/installer
laravel new example-app
cd example-app
php artisan serve