I ran sudo nano .bashrc
and added
export PATH="~/.composer/vendor/bin:$PATH"
I restarted my terminal, ran laravel
and received
laravel: command not found
I had run this prior to the above
composer global require laravel/installer
Also tried executing what I added to .bashrc
in the terminal directly.
echo $PATH
prints
/home/dev/.composer/vendor/bin:~/.composer/vendor/bin:~/.composer/vendor/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin