Laravel Tutorial - Installation of Laravel 8

Last updated Jan 27, 2022

Installing Laravel 8 is easy, but we will need to install XAMPP or WAMP server and Composer before doing so. In part 1 and part 2, we will install XAMPP and Composer first, and then we will download and install Laravel 8.

  • Part 1: Install Xampp server

  • Part 2: Install Composer

  • Part 3: Download and Install Laravel 8


Part 1: Install Xampp server

In this tutorial, we will install the Laravel 8 framework on the XAMPP server. To set up XAMPP, follow the instructions below:

Step 1: Go to ApacheFriends download page in your favorite web browser to open the XAMPP download page

Laravel - Xampp installation

There are three available versions for the XAMPP windows on this page, including 7.4.27/ PHP 7.4.27, 8.0.14/PHP 8.0.14, and 8.1.1/PHP 8.1.1. Now we are going to download the latest version.


Step 2: Click on the 8.1.1/PHP 8.1.1 link to download it. It takes a few minutes for the XAMPP installation setup to download


Laravel - Xampp installation2


Step 3: Now, double-click on the downloaded XAMPP setup file to begin the installation process

Now click on “Next” to continue with the installation.


Laravel - Xampp installation3


Step 4: Now select Xampp components to install and click “Next”

Laravel - Xampp installation4


Step 5: Now, browse your computer to select the installation file.

Laravel - Xampp installation5


In this post, we will install it in the Xampp folder. Click on next, and the installation process begins.

Step 6: Launch your XAMPP server and start all the services as soon as the installation process completes


Laravel - Xampp installation6


Open your browser and open http://localhost/dashboard/ to test whether our XAMP works

Laravel - Xampp installation7


Our XAMP server works perfectly well. Now we are ready to install our composer


Part 2: Install Composer

Simply follow the steps below to install composer:

Step 1: On your browser, open  to access the composer set-up download link

Laravel - composer setup


There are several ways of downloading the Composer, however we are going to work with Windows installer.

Step 2: Select the windows installer and click on the Composer-Setup.exe. This link will download the latest composer version


Laravel - composer setup2


The download process will take a few minutes.

Step 3: Open your downloaded composer installation setup to begin the installation process. First, you will be prompted to Choose the Installation options. Check on the “Developer mode” installation option and click “Next” to continue

Laravel - composer setup3


Step 4:  Now, choose the command-line PHP you would like to use


Laravel - composer setup4


Select the C:\Xamp\php\php\php.exe and click "Next."

Step 5: Now, configure your Proxy settings and click "Next."


Laravel - composer setup5


Step 6: Our composer is ready to install. Click on “Next” to start the installation.


Laravel - composer setup6


The installation process takes a few minutes.

Once the installation process completes, open your windows command prompt and run the Composer command to check on the version of the composer installed

Laravel - composer setup7


That's it, our composer version 2.2.4 has been installed successfully. We have completed the installation of the two Laravel 8 prerequisites; let us now move to the installation of Laravel 8


Part 3: Download and Install Laravel 8

In this part, we'll install Laravel 8 with the Composer command. Follow the steps below to get Laravel 8 set up.

Step 1: Launch your Windows command prompt.

Laravel  Tutorial Install Laravel


Step 2: Now, run the following command to install the Laravel 8: composer global require "laravel/installer"

composer global require "laravel/installer"

Laravel  Tutorial Install Laravel2


Step 3: Now that Laravel 8 is installed, we can create a new Laravel project. To create a new Laravel project, execute this command: composer create-project --prefer-dist laravel/laravel FirstProject


composer create-project --prefer-dist laravel/laravel FirstProject


Laravel  Tutorial Install Laravel3


Having installed Laravel, we need to check whether it works by opening the Laravel application in the browser. To do this, run the command: php artisan serve. This will generate a Laravel application URL. Open it in the browser


php artisan serve


Laravel - Xampp installation7

Our Laravel version 8.80.0 has been successfully installed. That’s it.



We have successfully installed Laravel 8 on our computer by the end of this chapter. We have also installed the XAMPP server as well as the composer. In the next chapter, we will learn about the structure of the Laravel application

Article Contributed By :