linux composer global require laravel/installer code example
Example 1: Laravel installation on Linux via composer
composer global require laravel/installer
laravel new example-app
cd example-app
php artisan serve
Example 2: Laravel installation on Linux via composer
composer create-project laravel/laravel example-app
cd example-app
php artisan serve