DEV Community

Amit Gupta
Amit Gupta

Posted on

2

How to Install Laravel 12 on Windows (Quick Guide)

Laravel 12 is now officially released! Follow these simple steps to install Laravel 12 on Windows.

1️⃣ Install XAMPP or WAMP

Ensure PHP version 8.2 or higher.

🔹 Download XAMPP: https://www.apachefriends.org/download.html
🔹 Download WAMP: http://www.wampserver.com/en/

Start Apache and MySQL after installation.

2️⃣ Install Composer

🔹 Download Composer: https://getcomposer.org/download/

Install it and verify with:

composer

3️⃣ Install Laravel 12

Via Composer Create-Project

composer create-project --prefer-dist laravel/laravel my-laravel-app

Via Laravel Installer

composer global require laravel/installer
laravel new my-laravel-app

For Laravel 12 explicitly:

composer create-project --prefer-dist laravel/laravel project_name "12.*"

4️⃣ Run Laravel 12

cd my-laravel-app
php artisan serve

👉 Open http://127.0.0.1:8000/

5️⃣ Check Laravel Version

php artisan --version

✅ It should display Laravel Framework 12.0.0

For common issues and troubleshooting, watch the full tutorial:📺 Complete Instructions: https://www.youtube.com/watch?v=_htRdjlPnzk

🚀 Subscribe for more Laravel tutorials!
Youtube.com/StackDevelopers

Heroku

Amplify your impact where it matters most — building exceptional apps.

Leave the infrastructure headaches to us, while you focus on pushing boundaries, realizing your vision, and making a lasting impression on your users.

Get Started

Top comments (0)

ACI image

ACI.dev: Fully Open-source AI Agent Tool-Use Infra (Composio Alternative)

100% open-source tool-use platform (backend, dev portal, integration library, SDK/MCP) that connects your AI agents to 600+ tools with multi-tenant auth, granular permissions, and access through direct function calling or a unified MCP server.

Check out our GitHub!

Join the Runner H "AI Agent Prompting" Challenge: $10,000 in Prizes for 20 Winners!

Runner H is the AI agent you can delegate all your boring and repetitive tasks to - an autonomous agent that can use any tools you give it and complete full tasks from a single prompt.

Check out the challenge

DEV is bringing live events to the community. Dismiss if you're not interested. ❤️