SETUP

Reference

How To Install Laravel For The First Time

Pre-requisite

I. Composer

Download Composer. Follow the installation instructions if you do not already have composer installed.

II. Visual Studio

Download Visual Studio.

III. XAMPP Apache

Download XAMPP.

Startup

There are 2 method to install laravel. Recommend Method 2

Method 1: laravel new [the project name]

  1. Create a folder in the “xampp” folder.

  2. Open the terminal and add this command: composer global require laravel/installer

  3. Result:

  1. After that, add this command: laravel new [the project name]

  2. For example, laravel new first_app

Method 2: composer create-project laravel/laravel [the project name]

  1. Firstly, run the command in CMD. The [backend] is the the project name. It can be changed to any other name.

composer create-project laravel/laravel backend
  1. Then, press "Y".

Run the laravel

  1. Go into the direction of the project name, if your project name backend, then run the command like below

cd backend
  1. Then, run this command. This command will provide the link to view the Laravel.

php artisan serve
  1. Press the control key and the [http://127.0.0.1:8000] link.

Not Able to Run the Laravel?

Did you composer install or composer update? Try to do it.

composer install

Last updated