Installing Laravel 8 on Windows 10 Xampp

How to install laravel on windows 10 using xampp. In this post, i will show how to install and configure laravel 8 latest version on windows 10 xampp server.

And also show you how to start development server for laravel 8.

How to Install Laravel 8 on Windows 10 Xampp

Installing laravel 8 on windows 10 xampp server step by step:

  • Step 1 – Prerequisiteto Install Composer On Windows
  • Step 2 – Server Requirements For Laravel 8
  • Step 3 – Installing Laravel On Windows 10 Xampp
  • Step 4 – Start Development Server For Laravel 8

Step 1 – Prerequisiteto Install Composer On Windows

In step 1, you need to install composer on windows 10 system. If you already composer download / installed Composer.  Then follow step 2 proccess.

Otherwise, you can follow this tutorial :- How to install composer in windows 10.

Step 2 – Server Requirements For Laravel 8

The Laravel 8 version has a few system requirements. Before we will install laravel 8 on windows, read some system requirements.

  • PHP >= 7.3
  • BCMath PHP Extension
  • Ctype PHP Extension
  • Fileinfo PHP extension
  • JSON PHP Extension
  • Mbstring PHP Extension
  • OpenSSL PHP Extension
  • PDO PHP Extension
  • Tokenizer PHP Extension
  • XML PHP Extension

Step 3 – Installing Laravel On Windows 10 Xampp

In step 3, you need to open your command prompt and navigate to local web server directory. Then type the command In the command prompt => composer create-project laravel/laravel Project Name

Note that, This command will install a laravel 8 new setup on your windows xampp:

cd xampp/htdocs

composer create-project --prefer-dist laravel/laravel blog
how to install laravel on windows 10 using xampp

After running this command, wait for Laravel complete installation on windows system.

Step 4 – Start Development Server For Laravel 8

In this step 4, Open again cmd and type the php artisan serve command .

This will will start your server locally:

php artisan serve

If you want to run the project diffrent port so use this command

php artisan serve --port=8080

Using the above steps, you have successfully install laravel 8 on windows 10 xampp server.

Now, open your browser and fire the below given url on your browser:

http://127.0.0.1:8000

Alternate option, If you are not run php artisan server command, direct go to your browser and fire the following URL:

URL : http://localhost/blog/public/

When you fire http://127.0.0.1:8000/ url on browser, You will look like the image given below:

installed laravel 8 on windows 10 xampp

Be First to Comment

Leave a Reply

Your email address will not be published. Required fields are marked *