How to install Laravel

Mar 02, 2016    Janaki Mahapatra, Laravel

We can install Laravel by Laravel Installer or through composer.
  1. Laravel Installer
    • First we have to download the Laravel Installer.In order to do that open your terminal and type
      composer global require "laravel/installer"
    • Once done, we have to update our PATH variable to include Laravel global installer location. We can do this by different ways, but it is good to put in your .bashrc file.
    • open your bashrc file with your favorite editor for me I love nano
      nano ~/.bashrc
    • Now update the PATH variable
      Save and exit by CTRO+O, then enter and then CTRL+X
    • Now it is ready, you can see it in action. Type Laravel in your terminal and you will see something like this laravel
    • Create your first project by
      laravel new blog
  2. Through composer:
    composer create-project --prefer-dist laravel/laravel blog