How to install laravel 10 using composer on windows
In this blog, we will learn about How to Install Laravel 10 using Composer.
Steps to Install Laravel 10 using Composer:
STEP 1: Prerequisites
1. Download & Install PHP 8.1 or Later on your PC : Laravel 10 only runs on PHP 8.1 or greater.
If you already have an older version of PHP, you simply need to download the new version. (Note: take a backup of your databases from your old php)
You can select any php localserver like XAMPP or WAMPP.
2. Download & Install Composer :
You can download & install Composer from the given link : https://getcomposer.org/
After installation of the composer, run the below command on your terminal to see your composer is running.
STEP 2: Create new laravel application using composer
Lets open a terminal and the terminal path should be where you want to keep the your project application and then run the below command.
OR if you want with the current Laravel Latest Version please follow with below command:
After successful installation of Laravel application, move to the correct directory as follows.
And now serve the laravel application with the following command:
Once the artisan is served successfully. you can go to the URL : http://localhost:8000/ on any browser.
The Output:
I hope it helps you. Thanks for reading.