- Forums
- laravel
- How To Start A Laravel App Project In Windows With Xampp And Php Artisan
these are the instructions to Start A Laravel App Project In Windows With XAMPP and PHP Artisan [5035], Last Updated: Mon Jun 24, 2024
ed
Tue Dec 20, 2022
0 Comments
393 Visits
Alright, I am going to keep it simple to follow on how to start a new Laravel Project if you have windows XAMPP.
Requirements:
- XAMPP
* If you need to upgrade your current version of XAMPP for the lastest Laravel, follow these instructions.
- 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.
- Click the Windows Start Button
- Type Environment Variables
- Select Edit the Sysem Environment Variables.
IMPORTANT: DO NOT SELECT THE OPTION: Edit Environment Variables for your account
- Click on the Environment Variables button
24-p5035-indows-system-properties-environment-variables.jpg
- In the bottom sections where it says "System Variables" Look for the Variable called PATH and select it.
- Click the Edit Button
- CLick New button
- Enter the PATH where you installed XAMPP PHP. For example: C:\\xampp\php
Create the laravel project
- Open File Explorer and to go the XAMPP installation and look for a folder called htdocs (example: C:\xampp\htdocs)
- Create a new folder in htdocs, For example: MyProject
- Open the MyProject folder with the terminal to execute the following command
$ composer create-project --prefer-dist laravel/laravel MyApp
- Compower will get all the required packages.
- Visual Code with the following command:
$ code MyApp
- In Visual Code, open a terminal and execute the following command to start the server:
$ php artisan serve
- Open your broser to: http://127.0.0.1:8000
- Enjoy