Skip to content

Instantly share code, notes, and snippets.

@ItsMurumba
Last active April 19, 2019 18:03
Show Gist options
  • Select an option

  • Save ItsMurumba/cc8eca851a933f173a8e71866b60d4cb to your computer and use it in GitHub Desktop.

Select an option

Save ItsMurumba/cc8eca851a933f173a8e71866b60d4cb to your computer and use it in GitHub Desktop.
laravel Installation on Ubuntu 18.04
#Install Laravel
composer global require "laravel/installer"
#Add composer to path to access laravel globally
export PATH="~/.config/composer/vendor/bin:$PATH"
#For Mac
export PATH="~/.composer/vendor/bin:$PATH"
#Refresh bashrc file
source ~/.bashrc
source ~/.bash_profile
#Create a new Laravel application
laravel new blog
#Install missing packages and their dependencies
cd blog
composer install
#Copy .env.example to .env
sudo cp .env.example .env
#change ownership of .env to the current user
sudo chown kevmurumba: .env
#run the command to generate the key
php artisan key:generate
#Test the application
php artisan serve
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment