Monday, August 21, 2017

Installing Laravel in Ubuntu 16.04

First install composer. Refer

Download Laravel:
$ composer global require "laravel/installer"

Edit environment config:
$ nano .bashrc
Note: If the above fails due to permissions, you may need to run it again with sudo.

Add the below line to the end of the file:
export PATH="$PATH:$HOME/.config/composer/vendor/bin"

Then reload the config:
$ source ~/.bashrc

To verify:
$ laravel

You will get a similar output as shown below:
Laravel Installer 1.3.3

  command [options] [arguments]

  -h, --help            Display this help message

  -q, --quiet           Do not output any message

No comments:

Post a Comment