Last active
April 19, 2019 18:03
-
-
Save ItsMurumba/cc8eca851a933f173a8e71866b60d4cb to your computer and use it in GitHub Desktop.
laravel Installation on Ubuntu 18.04
This file contains hidden or 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
| #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