laravel command not found ubuntu 20.04 code example

Example 1: laravel: command not found

export PATH=~/.config/composer/vendor/bin:$PATH

source ~/.bashrc

Example 2: laravel command not found ubuntu

export PATH="$PATH:$HOME/.config/composer/vendor/bin"

Example 3: command not found: laravel

# For mac just run these 2 commands
echo 'export PATH="$HOME/.composer/vendor/bin:$PATH"' >>  ~/.zshrc
source ~/.zshrc

Example 4: laravel command not found ubuntu

nano .bashrc

Example 5: laravel command not found ubuntu

source ~/.bashrc

Example 6: laravel command not found ubuntu

//on mac
echo 'export PATH="$HOME/.composer/vendor/bin:$PATH"' > ~/.bashrc
source ~/.bashrc

Tags:

Php Example