Laravel 5 installation

Requirements

*      PHP 5.4 and above

*     Composer

 

1.1 . Using normal composer Method 

Installation 

        composer create-project laravel/laravel learning-laravel-5  dev-develop

Description 

composer create-project – To create the new project

laravel/laravel   -> vendorname/packege name

learning-laravel-5  -> directory name to create

dev-develop  -> Branch name

 

In our case we can use the command below

composer create-project laravel/laravel learning-laravel-5

 

 

1.2. Using the laravel installer Method.

run

      composer global require "laravel/installer=~1.1"

Note : add laravel composer dir to your path

laravel new learning-laravel-5

 

2 . after the download complete run the server

 

2.1 Using PHP inbuld  server

          php -S localhost:8888 -t public

2.2 Using laravel artisan

        php artisan serve

3. maintenance mode / live mode

   php artisan down  -> to make the application to maintenance mode

php artisan up       -> to make the application to live mode from maintenance mode

 

 

 

Leave a comment