How to Create a New Laravel Project on XAMPP
Laravel

How to Create a New Laravel Project on XAMPP

May 23, 2026 2 min read 24 views


Are you ready to build robust, modern web applications using PHP's most popular framework? Laravel combined with XAMPP provides a highly efficient, localized development environment that mimics production servers. In this comprehensive developer's guide, we will walk you through the step-by-step process of setting up your first Laravel project from scratch on XAMPP.

πŸ“‹ Prerequisites for Installation

Before diving into the setup, make sure your machine has the following tools installed and configured:

  • XAMPP: Ensure you have the latest version of XAMPP installed, matching the PHP version required by the latest Laravel release.
  • Composer: The essential PHP dependency manager used to install Laravel's core files and libraries.

πŸ’‘ Pro Tip: Run php -v and composer -v in your terminal to verify both installations are working correctly.

πŸš€ Step-by-Step Laravel Setup on XAMPP

Step 1: Start Apache and MySQL

Open your XAMPP Control Panel and start both the Apache and MySQL services. These must remain active during development.

Step 2: Open Your Terminal or Command Prompt

Navigate to the htdocs directory inside your XAMPP installation. On Windows, the default path is:

cd C:\xampp\htdocs

Step 3: Run the Laravel Installer Command

Using Composer, run the following command to download and create a fresh Laravel application:

composer create-project laravel/laravel my-first-laravel-app

πŸ“ Replace my-first-laravel-app with your preferred project directory name.

Step 4: Launch Your Application

Navigate to your newly created directory and run Laravel's internal development server:

cd my-first-laravel-app
php artisan serve

πŸŽ‰ Your local application will now be live at:

http://127.0.0.1:8000

Enjoy coding your next big web application! πŸš€

πŸ“ Quick Reference Table

TaskCommand / Action
Stop the dev serverCtrl + C in terminal
Change default portphp artisan serve --port=8080
Use a virtual hostEdit httpd-vhosts.conf in XAMPP
Database setupUse phpMyAdmin at http://localhost/phpmyadmin

🎯 Next Steps

Now that your environment is ready, you can:

  • Configure your .env file for database connections
  • Start building routes in routes/web.php
  • Create controllers and Blade views
  • Explore Laravel's artisan commands

Happy Coding! πŸ’»βœ¨

Recruiter Portal

High-speed hiring panel & resume generator

Candidate Overview

NOTICE PERIOD 1 Week (Immediate)
AVAILABILITY Active & Open
TARGET ROLES Full-Stack / Senior Dev
WORK ARRANGEMENT Remote / Hybrid
Book Interview

Tailored Resume Generator

Select a specialization to dynamically adjust experience summaries, keywords, and skill structures before printing or saving.

// Dynamic Preview

Candidate: Irfan.dev

Focus Title: Senior Full-Stack Engineer

Focus Summary: Versatile Software Engineer with expertise in frontend architectures and robust backend scaling systems...

Skills Highlight: 18 active items

Note: Recommended to print with "Background Graphics" enabled. Fits beautifully on a single A4 sheet.

Irfan.dev

Senior Full-Stack Engineer

irfanurislam1234@gmail.com +8801572-518881 Cumilla Cantonment, Cumilla-3500, Bangladesh
linkedin.com/in/profile
github.com/username
irfan.itflor.com

Professional Summary

Highly versatile and detail-oriented Software Engineer with 5+ years of experience building secure, dynamic, and state-of-the-art web systems. Proven record of developing interactive user interfaces, implementing robust database infrastructures, managing clean application states, and delivering production-ready, scalable code from start to finish.

Technical Expertise

Bootstrap
C/C++
CSS
Dart
Figma
Flutter
GIt/Github
HTML
JavaScript
Laravel
Linux Server Management
MySQL
PHP
Postman
React
Tailwind CSS
VS Code
XAMPP

Professional Experience

Full-Stack Web Developer | INTIGRAD
Jan 2025 - Jan 2026 Austria

Co-Founder | ITFLORBD
Jan 2021 - Present Cumilla, Bangladesh

Education & Certifications

Bachelor of Science in Computer Science and Engineering Daffodil International University
Jan 2025 - Present
HSC in Science Ispahani Public School & College
Jan 2023 - Jul 2024 Grade: 5/5
SSC in Science Ispahani Public School & College
Jan 2021 - Feb 2022 Grade: 5/5
Live Pulse: -- ms