How to Install Laravel 5

In this post, we are going to install Laravel 5 on XAMPP. We are going to install Laravel via Composer’s create-project command.

Quick Tip : Get a random record from a table in Laravel

To Install the Laravel 5 follow the steps given below:

1. Install Composer.

2. Open the command prompt and navigate to the directory where you want to install Laravel (e.g. If you are using XAMPP you may want to install Laravel in htdocs directory).

3.  Type the following command and hit enter.

composer create-project laravel/laravel my_project_foler
Installing Laravel Via Composer Create-Project

Installing Laravel Via Composer Create-Project

Explanation:

In the above command, create-project command is used to a new create project. In laravel/laravel, first is the vendor name and second is package name, and in this case both are same. my_project_folder is the name of the folder which will be created during the installation process and where all the Laravel files and folders will be stored.

For more Information: http://laravel.com/docs/5.0#install-laravel

Leave a Comment.