Skip to content

Instantly share code, notes, and snippets.

@tebajanga
Last active February 27, 2019 22:36
Show Gist options
  • Save tebajanga/cc39dc730400752b97feda91a763a1b1 to your computer and use it in GitHub Desktop.
Save tebajanga/cc39dc730400752b97feda91a763a1b1 to your computer and use it in GitHub Desktop.
Installing Laravel Globally by using Composer for Ubuntu
# 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