×

Learn More

Author Box


Discuss Your Project

About Us

We are Microsoft Gold partner with its presence across the United States and India. We are a dynamic and professional IT services provider that serves enterprises and startups, helping them meet the challenges of the global economy. We offer services in the area of CRM Consultation and implementation, Application development, Mobile application development, Web development & Offshore Development.

Install Laravel 8 on Windows 10

A quick guide to Install Laravel 8 on Windows 10 XAMPP

By Pooja Sharma / August 27, 2021

October 13, 2022
A quick guide to Install Laravel 8 on Windows 10 XAMPP

Laravel is a PHP-based web application framework, it provides tools for building powerful and robust applications, it is an open-source framework, which provides a structure that saves a lot of time to build and plan for large applications. It is one of the most secure platforms using a PHP base. It provides built-in features for user authorization like login, registration, and forgot password.

Laravel setup on Windows 10

1) Install composer on Windows: 

Follow following link for composer installation steps click here

2) Check the server requirement for the setup: 

  • 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. 

Also, read: What is smoke testing? Its Role & Benefits

3) Installing Laravel:

Type the following command in your command prompt window:  

  • composer global require "laravel/installer". 
  • composer create-project --prefer-dist laravel/laravel Project_name: this command will install Laravel and other dependencies with it also generate the ANSI key. 

4) Create Database for Project:  

  • Go to phpMyAdmin click on create a new tab. 
  • Name the database. 
  • Press create button. 

Also, read: Laravel 8 – Excel and CSV Import Export to Database tutorial

5) Update .Env file:   

APP_NAME=Laravel 

APP_ENV=local 

APP_KEY=base64:TJ9Sob7KFPhL5XkqT+TyQux3x7UbW08QLb0xtirLWSs= 

APP_DEBUG=true 

APP_URL=http://127.0.0.1:8000 

LOG_CHANNEL=stack 

LOG_LEVEL=debug 

DB_CONNECTION=mysql 

DB_HOST=127.0.0.1 

DB_PORT=3306 

DB_DATABASE=first-laravel 

DB_USERNAME=root 

DB_PASSWORD= 

6) Migrate database: 

Create tables in the database for Laravel access, also helps in database version control following are the commands for migration. 

  • PHP artisan make migration create_databse_table: this command is used to create the DB migration file in your ‘database/migration’ folder. 
  • PHP artisan migrate: used to run the pending migration changes to the database 

Also, read: The new big things in CodeIgniter 4

7) Start development server:

PHP artisan serve: this command starts your development server. 

8) Go to the IP URL that you see on your CMD screen. 

Following these steps, you will definitely be able to set up the Laravel on your windows system.

Also, read: Top 10 Advantages of Laravel Development Services for Enterprises

[sc name="[sc name="Software Development Services"] [add_newsletter] [add_related_page_diff_contents blog_cat = "web-application"]

Laravel is a PHP-based web application framework, it provides tools for building powerful and robust applications, it is an open-source framework, which provides a structure that saves a lot of time to build and plan for large applications. It is one of the most secure platforms using a PHP base. It provides built-in features for user authorization like login, registration, and forgot password.

Laravel setup on Windows 10

1) Install composer on Windows: 

Follow following link for composer installation steps click here

2) Check the server requirement for the setup: 

  • 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. 

Also, read: What is smoke testing? Its Role & Benefits

3) Installing Laravel:

Type the following command in your command prompt window:  

  • composer global require “laravel/installer”. 
  • composer create-project –prefer-dist laravel/laravel Project_name: this command will install Laravel and other dependencies with it also generate the ANSI key. 

4) Create Database for Project:  

  • Go to phpMyAdmin click on create a new tab. 
  • Name the database. 
  • Press create button. 

Also, read: Laravel 8 – Excel and CSV Import Export to Database tutorial

5) Update .Env file:   

APP_NAME=Laravel 

APP_ENV=local 

APP_KEY=base64:TJ9Sob7KFPhL5XkqT+TyQux3x7UbW08QLb0xtirLWSs= 

APP_DEBUG=true 

APP_URL=http://127.0.0.1:8000 

LOG_CHANNEL=stack 

LOG_LEVEL=debug 

DB_CONNECTION=mysql 

DB_HOST=127.0.0.1 

DB_PORT=3306 

DB_DATABASE=first-laravel 

DB_USERNAME=root 

DB_PASSWORD= 

6) Migrate database: 

Create tables in the database for Laravel access, also helps in database version control following are the commands for migration. 

  • PHP artisan make migration create_databse_table: this command is used to create the DB migration file in your ‘database/migration’ folder. 
  • PHP artisan migrate: used to run the pending migration changes to the database 

Also, read: The new big things in CodeIgniter 4

7) Start development server:

PHP artisan serve: this command starts your development server. 

8) Go to the IP URL that you see on your CMD screen. 

Following these steps, you will definitely be able to set up the Laravel on your windows system.

Also, read: Top 10 Advantages of Laravel Development Services for Enterprises

Software Development Services

Are you looking for a reliable software development company? Our highly skilled software developers enables us to deliver result oriented software development services. Contact our team to understand, how we can help you in achieving your business goals.



guest
5 Comments
Inline Feedbacks
View all comments
James Kendall
James Kendall
November 8, 2021 8:09 am

That’s a great article on Installing Laravel 8 on Windows 10 XAMPP.

Loved it.

Victor Cachay Dioses
Victor Cachay Dioses
December 1, 2021 1:01 am

Excelente aporte.
Solo en el punto 3 hay que colocar las líneas de esta manera. Parece lo mismo, pero no lo es. Es un tema de espacios y faltó un (-):
composer global require “laravel/installer”
composer create-project –-prefer-dist laravel/laravel Project_name

tito
tito
December 3, 2021 12:06 pm

Thank you, I was helpful.

S Mande
S Mande
March 22, 2022 4:16 am

of Great help !!!

Vinodkumar
Vinodkumar
December 23, 2022 1:10 am

Clear step by step article on installing laravel.

5
0
Would love your thoughts, please comment.x
()
x