Last active
February 27, 2019 22:36
-
-
Save tebajanga/cc39dc730400752b97feda91a763a1b1 to your computer and use it in GitHub Desktop.
Installing Laravel Globally by using Composer for Ubuntu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Getting composer | |
curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer | |
# Changing permission for .composer directory | |
sudo chown -R $USER ~/.composer/ | |
# Installing Laravel Global | |
composer global require "laravel/installer" | |
# Adding composer to system PATH | |
echo "export PATH=$HOME/.composer/vendor/bin:$PATH" >> /home/$USER/.bashrc | |
# Sourcing the file | |
source /home/$USER/.bashrc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment