Alright, I am going to keep it simple to follow on how to start a new Laravel Project if you have windows XAMPP.

Requirements:

  1. XAMPP
    * If you need to upgrade your current version of XAMPP for the lastest Laravel, follow these instructions.
  2. Composer

Setup Windows Environment Variables

Once you have installed XAMPP & Composer you will need to setup your Windows Envorinment Variables. Follow these instructions if you do not know how to do this.

  1. Click the Windows Start Button
  2. Type Environment Variables
  3. Select Edit the Sysem Environment Variables.
    IMPORTANT: DO NOT SELECT THE OPTION: Edit
    Environment Variables for your account
  4. Click on the Environment Variables button
    24-p5035-indows-system-properties-environment-variables.jpg
  5. In the bottom sections where it says "System Variables" Look for the Variable called PATH and select it.
  6. Click the Edit Button
  7. CLick New button
  8. Enter the PATH where you installed XAMPP PHP. For example: C:\\xampp\php

Create the laravel project

  1. Open File Explorer and to go the XAMPP installation and look for a folder called htdocs (example: C:\xampp\htdocs)
  2. Create a new folder in htdocs, For example: MyProject
  3. Open the MyProject folder with the terminal to execute the following command
    $ composer create-project --prefer-dist laravel/laravel MyApp
  4. Compower will get all the required packages.
  5. Visual Code with the following command:
    $ code MyApp
  6. In Visual Code, open a terminal and execute the following command to start the server:
    $ php artisan serve
  7. Open your broser to: http://127.0.0.1:8000
  8. Enjoy