How to install Laravel 5 on Windows with Xampp

When you normally install Laravel Framework in a updated system (Chrome and Firefox, privacy error) you'll get a privacy error in web browser. Following steps will save your time.

First you need to download and install Xampp and Composer.

Install Laravel Framework 

Open command prompt and run below command. It will download and install Laravel Framework for you, in C:\Users\USER_NAME directory. 

composer create-project laravel/laravel laravel "5.7.*"

Config Xampp for Virtual Host

Open httpd-vhosts.conf file via your favorite notepad. In default it locates at C:\xampp\apache\conf\extra directory. Add following lines at the end of the file.

# VirtualHost for LARAVEL.TEST

   <VirtualHost laravel.test:80>   
    DocumentRoot "C:\Users\USER_NAME\laravel\public"   
    ServerAdmin laravel.test   
    <Directory "C:\Users\USER_NAME\laravel">         
      Options Indexes FollowSymLinks         
      AllowOverride All         
      Require all granted   

Then open and edit hosts file with admin privileges(run notepad as admin) which located on C:\Windows\System32\drivers\etc directory. add following line and save it. laravel.test

Now you have successfully installed and configured done for Laravel Framework. Navigate to laravel.test  via your favorite web browser.