laravel new laravel command not found code example
Example 1: laravel: command not found
export PATH=~/.config/composer/vendor/bin:$PATH
source ~/.bashrc
Example 2: laravel command not found after installing laravel mac
export PATH="$PATH:$HOME/.composer/vendor/bin"