LARAVEL Tutorial


Laravel 7 Install On Windows & Ubuntu With Composer

Author:- w3alert.com
Updated Date:-11-08-2020

Before we start the laravel installation tutorial. Make sure you have installed on your machine before you install the Laravel framework. In this tutorial, you will learn the installation process of Laravel.

In this tutorial, you will also learn how to install laravel on windows and ubuntu system step by step and also learn how to install laravel specific version.

Laravel Installation

Just follow the steps given below for installing Laravel in your machine/system:

Step 1 :- Install Composer In your Machine/System

First of all, you need to install the composer. So Visit the following URL and download the composer, then install it into your system/machine.

https://getcomposer.org/download/

Step 2 :− Check Composer Install OR NOT

After you have successfully install the composer in your system or machine. Use the below given command to check into your command prompt and check:

composer


Step 3 :− Install Laravel New Setup

Next step, Go to command prompt and type below command to install or download the latest version of laravel:

If you are using an Ubuntu system, So type below command on your command prompt:

cd /var/www/html

If your using windows system, So type below command on your command prompt:

cd c:/xampp/htdocs/

//for install laravel new setup

composer create-project laravel/laravel blog –-prefer-dist

If you want to install laravel specific version, so you can use the below command:

//install laravel specific version

composer create-project laravel/laravel blog "6.x*"

Step 4 :- Start Development Server

After you have successfully installed a laravel new setup in your system. you can use the below command to start the local or development server, so open your command prompt and go to your installed laravel project root directory then type the below command:

First, go to project root directory using the below command

// for ubuntu system
cd var/www/html/blog 

// for windows system
cd c:/xampp/htdocs/blog

Start development server

php artisan serve


Step 5 :- Run on Browser

The final step, go to your browser and type the below-given URL into your browser:

http://localhost:8000

OR

http://localhost/blog/public/

Reference

This tutorial idea has taken from this https://laravel.com/docs/7.x/installation