How to install laravel 8

How to install laravel 8


In this tutorial, you will be learning how to install laravel so, to install laravel we require a composer.

Composer is a PHP Dependency manager. so, first download and install your composer from the link https://getcomposer.org/  

If you have already installed composer, check with the given below command in the terminal:

$ composer -V

Method 1: Lets, install the Laravel Installer as a global Composer dependency on our system, so open your terminal and execute the following command: 

$ composer global require laravel/installer

This above command will take few minutes to exexute, so after successful installation above command, lets create a Laravel Application. 

This command will create a project of the Latest Version of Laravel application by following command:

$ laravel new fundaBlog

Method 2: Let's install Laravel 8 Via Composer with specific version as following command:

$ composer create-project --prefer-dist laravel/laravel fundaBlog "8.0.*"

After successful execution of above command, laravel project creation, open terminal and go to the laravel project path and give a command to run the application as follows:

$ php artisan serve


Output on your browser at: http://localhost:8000