I have installed composer by the instructions given in their site for Ubuntu 16.04. Its giving the usual output after giving the 'composer' command in the terminal. After installing composer, I have downloaded the composer using
composer global require "laravel/installer"
Now to install Laravel, I have to add $HOME/.composer/vendor/bin in my path. But there is no .composer folder in my home directory. Can anybody tell me why this is happening ?
In my Ubuntu 16.04.4, after downloading the Laravel installer using
composer global require "laravel/installer"
I found my Laravel here :
~/.config/composer/vendor/laravel/installer/
Then I set my .bashrc using nano ~/.bashrc and export your composer config file :
export PATH="$PATH:$HOME/.config/composer/vendor/bin"
And refresh using source ~/.bashrc in terminal
And Laravel is running, but I did not need any .composer folder as said in the Laravel official site.
This answer has helped me a lot.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With