I already tried to fix this myself multiple times but with no luck so far.
So i just installed laravel i added path
export PATH="$PATH:$HOME/.config/composer/vendor/bin"
to the (.bashrc) file then i saved everything and run
source $HOME/.bashrc
to update everything after that i run
laravel -v
and it shows that everything is installed however after i close the terminal and open the new one and run
laravel -v
it shows laravel: command not found.
Already tried this I get "laravel: command not found" on Ubuntu 20.04
I am running on Ubuntu 22.04.1 LTS Here are screenshots from my terminal:
Thank you for your help in advance ! :)
CodePudding user response:
You may need to run the command "source ~/.bashrc" each time you open a new terminal session in order for the changes to take effect.