I am trying to add environment path variable of composer globally. I've tried many ways but it does not seem to work. I searched other posts, but did not find matching answers. I am trying to configure laravel 5+ but I need to add the composer path globally in order to access laravel syntax using a terminal.A temporary path set using Terminal works, but permanent path set does not. How do I do this?
Set environment variable $PATH globally on Ubuntu 14.04
ubuntu;environment variables;path
You can change the settings in /etc/environment which contains a definiton of the $PATH variable, or add an entry to the system-wide bashrc ( /etc/bash.bashrc which is not as universal as changing the environment setting (i.e. only for bash and if the system-wide bashrc is actually loaded).