How to make laravel run automatically each time I open a new terminal?

  composer-php, laravel, php, ubuntu

I came from windows to Ubuntu and tried to install laravel following link
https://laravel.com/docs/5.0
I ended with the installer 1.4…. I don’t recall which one so I decided to use

composer global require "laravel/installer" 

I ended with the installer 4.1.1 but if I close the terminal and open it again and run laravel it does not find the command. I found the following command searching for a solution PATH="~/.config/composer/vendor/bin:$PATH"
I have to run this each time for the laravel command to work. Is there a permanent solution? I’m new to linux and I’m having so many issues and could not find a solution. I plan to update laravel but I cannot even get this running properly.

Source: Ask PHP

LEAVE A COMMENT