Laravel 7 Installation Guide

Laravel 7 Installation Guide 2020

Laravel 7 Installation Guide

Laravel 7 Installation Guide 2020

Laravel 7 installation process is quite simple, All wee need to do is follow few steps and all will be done. Let’s say you want to create Blog project so first you need to install XAMPP into your computer. Now we need to install nodejs. Just go to the nodejs website and download it is simple installer.

Once you have xampp and nodejs installed and running then open “terminal” in macos or “CMD” in windows. navigate to the “xampp/htdocs” directory.

We need to install composer

run below given 4 commands for installing composer


php -r "copy('', 'composer-setup.php');"


php -r "if (hash_file('sha384', 'composer-setup.php') === '572cb359b56ad9ae52f9c23d29d4b19a040af10d6635642e646a7caa7b96de717ce683bd797a92ce99e5929cc51e7d5f') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"


php composer-setup.php


php -r "unlink('composer-setup.php');"

If facing any issue check this guide, It will resolve your problems.

Now once all required dependencies are installed, Make sure you are in “xampp/htdocs directory” using “terminal” or “cmd”. and Run this command to create project.

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

As we are creating “Blog” project so name at the end of the command is “blog”. If you want to change it then you can. Run this command and make sure you connected to internet it will create laravel project for you and then you can run these commands.

So once blog project created, navigate into “xampp/htdocs/blog” folder. And run these commands

// To install required packages

npm install

// To install composer based packages

composer install

//To generate key 
php artisan key:generate

//For migrating data using migration files
php artisan migrate

Remember migrate command will require you to first connect to database. so in your project find “.env” file add database details


Once detials are provided and you have a database ready then run migration command. Check video guide if face any issue.

Important Links:

How to setup Virtual Host On Laravel:

Download XAMPP:

Download Composer:

Download NodeJS: