Install Laravel Rust in XAMPP or Laragon: 8 Easy Steps
Laravel Rust is the newest member of the Laravel family. Taylor Otwell announced the first public beta on December 1, 2026, and it brings Laravel’s conventions (routing, middleware, Eloquent-style models, queues, mail, authentication and testing helpers) to the Rust programming language. In Laravel’s own benchmark on Laravel Cloud, the same app served 1,774 requests per second on Laravel Rust versus 97 on Laravel PHP.
If you are a Windows developer who has used XAMPP or Laragon for years, your first question is probably: “How do I install Laravel Rust in XAMPP or Laragon?” This guide answers that step by step.

First, an important difference
A classic Laravel PHP app runs on the PHP and Apache (or Nginx) that XAMPP and Laragon provide. Laravel Rust does not. It is a Rust framework built on Axum and Tokio, it compiles to a single binary, and it starts its own web server. That means:
- You do not put a Laravel Rust project in
htdocs(XAMPP) orwww(Laragon) and open it through Apache. - You do keep using XAMPP or Laragon for what they are great at: the database server (MySQL / MariaDB), phpMyAdmin or HeidiSQL, and (with Laragon) a handy terminal.
Laravel Rust supports PostgreSQL, MySQL, MariaDB and SQLite, so the database that ships with XAMPP or Laragon works fine.

Requirements to install Laravel Rust on Windows
- Windows 10 or 11
- Rust 1.99 or later
- Node.js (LTS) and npm
- Git
- The new Laravel CLI
- XAMPP or Laragon (for the database)
Step 1: Install Rust on Windows
The first thing you need to install Laravel Rust is the Rust toolchain itself. Download rustup-init.exe from rustup.rs and run it. Accept the default installation. If the installer asks to install the Visual Studio C++ Build Tools, allow it: Rust needs them to compile on Windows.
Open a new terminal and check the version:
rustc --version cargo --version
If you already had Rust installed, update it to 1.99 or newer:
rustup update

Step 2: Install Node.js and Git
Laragon users usually already have both (Laragon bundles Git and Node.js; you can switch versions from Menu → Tools). XAMPP users should install them from nodejs.org and git-scm.com. Verify:
node -v npm -v git --version
Step 3: Install the new Laravel CLI
To install Laravel Rust projects you need the new Laravel CLI (not the old Composer laravel/installer). Open PowerShell and run:
powershell -ExecutionPolicy Bypass -c "irm https://laravel.com/install.ps1 | iex"
Close and reopen the terminal, then check:
laravel --version
The output should start with Laravel CLI. If you still see the old Composer installer, find all copies with:
Get-Command laravel -All
Then open Edit environment variables for your account and move %USERPROFILE%\.laravel\bin above the Composer (or Herd) directory in your user Path. Optionally remove the old installer:
composer global remove laravel/installer

Step 4: Start the database in XAMPP or Laragon
XAMPP
- Open the XAMPP Control Panel and click Start next to MySQL. (You only need Apache running if you want phpMyAdmin.)
- Open
http://localhost/phpmyadminand create a new database, for examplelaravel_rust, with collationutf8mb4_unicode_ci.
Note: the “MySQL” in XAMPP is actually MariaDB. Keep that in mind for Step 6.
Laragon
- Open Laragon and click Start All (or right-click → MySQL → Start).
- Click Database to open HeidiSQL, then create a database called
laravel_rust.
Laragon ships with real MySQL by default. If you switched it to MariaDB, or added PostgreSQL, use the matching settings in Step 6.
Step 5: Create the Laravel Rust project
When you install Laravel Rust, the project can live anywhere on your drive. A tidy choice is a separate folder such as C:\projects. Laragon users can open Terminal from Laragon so Git and Node are already on the path.
cd C:\projects laravel new example-app --rust cd example-app
Without --rust, the CLI asks which language you want; choose Rust. The CLI installs the frontend dependencies and compiles the project. The first build downloads and compiles many crates, so it can take a few minutes.

Step 6: Connect Laravel Rust to the XAMPP / Laragon database
Laravel Rust reads two keys from .env: DB_CONNECTION and DATABASE_URL. The driver is picked from the URL scheme (postgres://, mysql://, mariadb:// or sqlite:). New apps enable the PostgreSQL driver by default, so for MySQL or MariaDB you also need to enable the database-mysql Cargo feature in your project’s Cargo.toml (it covers both MySQL and MariaDB).
XAMPP (MariaDB, user root, empty password)
DB_CONNECTION=mariadb DATABASE_URL=mariadb://root@127.0.0.1:3306/laravel_rust
Laragon (MySQL, user root, empty password)
DB_CONNECTION=mysql DATABASE_URL=mysql://root@127.0.0.1:3306/laravel_rust
If your root user has a password, use root:yourpassword@127.0.0.1. Use mariadb:// for MariaDB servers so the query builder generates MariaDB-compatible SQL.
Tip: the connection names are defined in src/config/database.rs. If DB_CONNECTION doesn’t match a name there, check that file and use the name it defines.

Want zero setup? Use SQLite
For a quick test you can skip MySQL completely:
DB_CONNECTION=sqlite DATABASE_URL=sqlite://storage/app/database.sqlite?mode=rwc
Step 7: Run migrations
laravel migrate
Refresh phpMyAdmin or HeidiSQL and you should see the new tables in laravel_rust.
Step 8: Start the development server
laravel dev
This one command starts the application, a queue worker and the frontend dev server together. Open http://127.0.0.1:8000 in your browser and you’ll see your new Laravel Rust app.

Common problems when you install Laravel Rust (and fixes)
These are the errors developers run into most often when they install Laravel Rust on Windows next to XAMPP or Laragon.
laravel newcreates a PHP app or doesn’t know--rust: the old Composer installer is first on your PATH. Fix the PATH order from Step 3.link.exe not foundwhile compiling: the Visual Studio C++ Build Tools are missing. Install them (with the “Desktop development with C++” workload) and reopen the terminal.- Rust version error: run
rustup update; Laravel Rust needs 1.99 or later. - Connection refused on port 3306: MySQL/MariaDB isn’t running in XAMPP or Laragon, or it is on another port. Check the port in the control panel and update
DATABASE_URL. - Port 8000 is busy: another app (for example
php artisan serve) is using it. Stop that process first. - SQL errors on XAMPP: make sure you used
mariadb://, notmysql://.
Should you switch from Laravel PHP?
Laravel Rust is still in beta. If you install Laravel Rust today, it is a great time to experiment, build side projects and learn Rust with familiar Laravel ideas. For client production work, Laravel PHP on your existing XAMPP or Laragon setup is still the safe choice until the stable release. If you are still deciding between the two, read our Laravel PHP vs Rust backend comparison.
FAQ: Install Laravel Rust in XAMPP or Laragon
Can I install Laravel Rust inside the XAMPP htdocs folder?
You can keep the folder anywhere, but Apache will not run it. Laravel Rust compiles to its own binary and serves the app itself with laravel dev on http://127.0.0.1:8000. XAMPP is only used for the MySQL/MariaDB database and phpMyAdmin.
Does Laravel Rust need PHP or Composer?
No. To install Laravel Rust you need Rust 1.99 or later, Node.js, Git and the new Laravel CLI. PHP and Composer are not required to run a Laravel Rust app.
Which database should I use with Laravel Rust on Windows?
Laravel Rust supports PostgreSQL, MySQL, MariaDB and SQLite. With XAMPP use the mariadb:// URL scheme, with Laragon use mysql://, or use SQLite for a quick test with zero setup.
Is Laravel Rust ready for production?
Laravel Rust is currently in beta. It is great for learning and side projects, but for client production work Laravel PHP is still the safer choice until the stable release.
Why does laravel new create a PHP project instead of a Rust one?
The old Composer laravel/installer is probably first on your PATH. Run laravel --version; it should start with “Laravel CLI”. If not, move %USERPROFILE%\.laravel\bin above the Composer directory in your user Path.
Conclusion
You don’t really “install Laravel Rust inside” XAMPP or Laragon. Instead you install Rust and the new Laravel CLI on Windows, create the project with laravel new example-app --rust, and point it at the MySQL/MariaDB server XAMPP or Laragon is already running. Then laravel migrate and laravel dev and you’re up and running.
Now that you know how to install Laravel Rust with XAMPP or Laragon, try building a small CRUD app to get a feel for the framework. For more, read the official docs: laravel.com/rust/docs.