Install composer
check if the composer is working by typing
composer
once the composer is installed, install laravel/installer via composer using the following command
composer global require "laravel/installer"
after installing export the path
echo 'export PATH="$PATH:$HOME/.composer/vendor/bin"' >> ~/.bashrc
Then
source ~/.bashrc