install laravel globally linux code example
Example 1: install laravel globally
composer global require laravel/installer
Example 2: Laravel installation on Linux
cd example-app
./vendor/bin/sail up
composer global require laravel/installer
cd example-app
./vendor/bin/sail up