How to Install Laravel 9 on Windows 11? Easy

How to Install Laravel 9 on Windows 11
How to Install Laravel 9 on Windows 11

Laravel is a PHP-based web application framework that provides tools for creating powerful and reliable applications. It is an open-source framework that provides a structure that saves time when constructing and planning huge projects. It is one of the most secure PHP-based platforms. It has built-in user authorization capabilities such as login, registration, and forgot password.

How to setup Laravel 9 on Windows 11

1 Installing XAMPP for windows

XAMPP is the most popular PHP development environment. To install Laravel on our machine we need to have the PHP installed. For that, we are going to install XAMPP in this tutorial. First, navigate to and download the XAMPP for windows. Install the application and start the PHP.

2 Install Composer

After we have the XAMPP in our machine which has also PHP, we need to install composer. Navigate to and download the composer-setup.exe file. Install the composer.

3 Install Laravel with composer

Now we have the machine ready with PHP and composer, navigate to Go to the docs and navigate to the getting started installation. Click on Install with the composer.

Install laravel on windows with composer

4 Create the project

Open the terminal and navigate in the

cd /c/xampp/htdocs

When you are on htdocs directory paste the command

composer create-project laravel/laravel example-app

With that, you have created the laravel project on your windows machine. Now cd in the example-app and run

php artisan serve

Your application is ready. Navigate to and there is your app.

5 Domain host Configuration

Now to change the domain to something like example-app.test you need to make some changes to C:\Windows\System32\Drivers\etc\hosts and httpd-vhosts watch the video for more.

Laravel 9 Clear Cache, Route, Config and View
Beginner’s Guide to Laravel API Resource
Laravel Filament Admin Panel Package Tutorial
Laravel 9 Mail Tutorial | How to Send Email

Leave a Reply

Your email address will not be published.