How to install Laravel?

Today, In this blog, we are going to the see the installation process of Laravel. We will downloads the Laravel with the help of Composer.How to install Laravel?

Laravel framework needs few requirements for getting installed on your system. A virtual machine has fulfilled each of these system requirements. The local system need this development environment to download and successfully run the Laravel.

  • PHP having version 7.0 or upper version
  • An OpenSSL extension for PHP
  • A PDO extension for PHP
  • Mbstring extension for PHP
  • Tokenizer extension for PHP
  • XML extension for PHP

Composer : Laravel implements a composer for managing dependencies within it. Hence, before the use of Laravel, it needs to check whether you have a composer setup on your system or not.

Please visit this URL to download Composer:

After installing the Composer, cross-check whether it is installed or not by typing in the command prompt the composer command. You can see the Composer screen in that CMD only.

Make sure to put the Composer’s system-wide vendor in the bin directory within your $PATH; as a result, your system can locate the executable of Laravel.

Setup Laravel using Installer

We have to download the Installer of Laravel with the help of Composer, like this:

composer global require “laravel/installer”

When the installation is done, a new command of laravel will start a new fresh installation in that directory you provide

laravel new nirectory_name

Create a New Laravel Project :

Now, we have to do is make a new folder in a specific path within your system for keeping your Laravel projects. Move to that location where the directory is created. For installing the Laravel, the following command you have to type:

composer create-project laravel/laravel – prefer -dist

The above command will make Laravel installed on that specific directory

Next, type the command to compile the project:

php artisan serve

This above command will start the Laravel service. A black screen will appear showing the message: Laravel Development server started on http://localhost:8080.

Copy and paste the URL: http://localhost:8080 in your browser to see the Laravel home screen appears in your browser.

So, thanks for following this blog, and if you need any help please leave your queries in the comment box we will be happy to help you.

How to install Laravel?.expoundsofttechsolution What is GMT?