Laravel Installation – Homestead & XAMPP


Existing Installations – GIT

  1. Download & install virtual box
  2. Download & install vagrant
  3. Download & install composer
  4. Follow

Once VirtualBox / VMware and Vagrant have been installed, you should add the laravel/homesteadbox to your Vagrant installation using the following command in your terminal.

It will take a few minutes to download the box, depending on your Internet connection speed:

GIT bash on C drive & use the command at bottom

vagrant box add laravel/homestead

What is homestead –

As described at

Laravel Homestead is an official, pre-packaged Vagrant box that provides you a wonderful development environment without requiring you to install PHP, a web server, and any other server software on your local machine. No more worrying about messing up your operating system! Vagrant boxes are completely disposable. If something goes wrong, you can destroy and re-create the box in minutes!

Homestead runs on any Windows, Mac, or Linux system, and includes the Nginx web server, PHP 7.1, MySQL, Postgres, Redis, Memcached, Node, and all of the other goodies you need to develop amazing Laravel applications.

This will create homestead directory in the root of “C:\” drive, Installing Homestead. You may install Homestead by simply cloning the repository.

Consider cloning the repository into a Homestead folder within your “home” directory. The Homestead box will serve as the host to all of your Laravel projects: cd ~ (go to root of C drive “C:\”) Fire the command below –

git clone Homestead

This part is a bit confusing –

What is the difference between the laravel homestead box and the homestead repo?






Once you have cloned the Homestead repository, run the command


command from the Homestead directory to create the Homestead.yaml configuration file.


homestead yaml
homestead yaml

composer create-project –prefer-dist laravel/laravel Name-of-Your-Directory

Go to Homestead directory punch the command & press enter

vagrant up –provision

Now check if laravel is installed & working fine by going to browser and punching the url


Install Composer

Install XAMPP

Go to htdocs directory

Use the following Command

composer create-project –prefer-dist laravel/laravel Name-of-Your-Directory

In my case I installed it to the directory “laravel_p1”

To test the installation,


Type the following URL in the browser


You should see the following screen

laravel successful installation
laravel successful installation