ubuntu 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

#these commands executed on Ubunyu 20.04
export PATH=~/.config/composer/vendor/bin:$PATH
source ~/.bashrc

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

composer global require "laravel/installer"

Example 5: ubuntu laravel: command not found

#For Ubuntu 20.04 this will add laravel command to your PATH from CLI
#and append (>>) to your ~/.bashrc file
export PATH="$PATH:$HOME/.config/composer/vendor/bin" >> ~/.bashrc
#Make sure your terminal does actually use ~/.bashrc and not ~/.bash_profile
#reload terminal path config
source ~/.bashrc

Example 6: laravel command not found ubuntu

source ~/.bashrc

Tags:

Php Example