Answered by : careful-cowfish-gogsipaxme7d
source ~/.bashrc
Source : https://stackoverflow.com/questions/28597648/laravel-5-installation-in-ubuntu-laravel-command-not-found | Last Update : Sat, 03 Apr 21
Answered by : csar-cruz
echo 'export PATH="~/.config/composer/vendor/bin"' >> ~/.bashrc
# or
echo 'export PATH="~/.config/composer/vendor/bin"' >> ~/.zshrc
Source : | Last Update : Sun, 04 Oct 20
Answered by : careful-cowfish-gogsipaxme7d
export PATH="$PATH:$HOME/.config/composer/vendor/bin"
Source : https://stackoverflow.com/questions/28597648/laravel-5-installation-in-ubuntu-laravel-command-not-found | Last Update : Sat, 03 Apr 21
Answered by : careful-cowfish-gogsipaxme7d
composer global require "laravel/installer"
Source : https://stackoverflow.com/questions/28597648/laravel-5-installation-in-ubuntu-laravel-command-not-found | Last Update : Sat, 03 Apr 21
Answered by : awful-antelope-moa1l00r34tf
# For mac just run these 2 commands
echo 'export PATH="$HOME/.composer/vendor/bin:$PATH"' >> ~/.zshrc
source ~/.zshrc
Source : | Last Update : Thu, 17 Dec 20
Answered by : careful-cowfish-gogsipaxme7d
nano .bashrc
Source : https://stackoverflow.com/questions/28597648/laravel-5-installation-in-ubuntu-laravel-command-not-found | Last Update : Sat, 03 Apr 21
Answered by : hassaan-shariq-mirza
nano ~/.bash_profile
Source : https://stackoverflow.com/questions/26376516/laravel-php-command-not-found | Last Update : Sun, 03 Jul 22
Answered by : dead-dormouse-7hjwevhu8f6p
#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
Source : https://stackoverflow.com/questions/35211862/laravel-command-not-found/35213546 | Last Update : Thu, 17 Jun 21
Answered by : careful-cowfish-gogsipaxme7d
//on mac
echo 'export PATH="$HOME/.composer/vendor/bin:$PATH"' > ~/.bashrc
source ~/.bashrc
Source : https://stackoverflow.com/questions/28597648/laravel-5-installation-in-ubuntu-laravel-command-not-found | Last Update : Sat, 03 Apr 21