Easy Laravel Installation on Windows

Here is a step-by-step guide to installing Laravel on Windows.

Step 1: Install Laravel Using Composer

After installing Composer, open Command Prompt or a terminal of your choice. composer global require laravel/installer.

 

Step 2: Create New Laravel Project

If you've installed the Laravel installer globally, you can create a new project with:

laravel new project-name

Alternatively, you can create a new Laravel project without the global installer:

composer create-project --prefer-dist laravel/laravel project-name

 

Open Command Prompt or Terminal, run the following command to create a new Laravel project named "Myblog":

composer create-project --prefer-dist laravel/laravel Myblog

 

This is a picture of the contents of the Myblog project directory

Step 3: Navigate to the Project Directory

Navigate to the directory of your Laravel project.

cd Myblog

Step 4: Run the Laravel Development Server

Start the Laravel development server:

php artisan serve

Open web browser dan access it at http://localhost:8000