Categories: Laravel Tutorial: Step by Step Guide to Building Your First Laravel Application - Techanical-Atom

How To Install Laravel Step By Step Guide2 min read

How To Install Laravel
Reading Time: 2 minutes

This article will guide you how you can Install Laravel on your system . Before installing laravel you must ensure that the php version of your server is compatible with the laravel. Following are some of the system requiremens for the laravel to meet so that it can be installed on your system.

  • PHP >= 7.1.3
  • OpenSSL PHP Extension
  • PDO PHP Extension
  • Mbstring PHP Extension
  • Tokenizer PHP Extension
  • XML PHP Extension
  • Ctype PHP Extension
  • JSON PHP Extension

If your system has all the above requirements fulfilled then you can easily install laravel.Now let’s start and See step by step how you can install laravel.

How To Install Laravel Step By Step Guide

How To Install Laravel
How To Install Laravel

#Step-1 Install Composer

Laravel uses composer to manage his dependencies so before doing anything make sure you have composer installed on your machine . If this is your first time installing laravel then open the command promt by pressing Ctrl + R and type cmd . After that go to your htdocs folder and run the following command.

 composer global require "laravel/installer"

#Step-2 Create New Project In laravel

After installing laravel you can the following command to create a new project with all the necessary files and core files being installed.

laravel new blog

where blog will be the name of your project folder to be created. Some times this command will not create the vendor folder necessary for the laravel to run so you can use composer to create new project by using the following command

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

#Step-3 Local Development Server

Now you can use your local php server to run the freshly installed laravel on your local may use the serve Artisan command. This command will start a development server at http://localhost:8000

php artisan serve

And Boom that’s it you have freshly installed laravel up and running on your server.You can able to see the following screen on your system.

Laravel front page with auth
Laravel front page with auth

For more detailed analysis and configuration you can heads up to Laravel Documentation . And for more such articles keep visiting, Techanical Gyaan for all .

All Rights Reserved @ Techanical-Atom
%d bloggers like this: