How to install Laravel 5.8 and create a project in laravel 5.8

Installing Laravel

Laravel uses Composer to manage all its dependencies. Composer Link: https://getcomposer.org/

So, before using Laravel, make sure you have already installed Composer on your System/machine.

Via Laravel Installer

First, you have to download the Laravel installer using Composer for to create a project or application direclty in laravel, so run below command to install laravel using Compeser.

$ composer global require laravel/installer

Once installed your laravel, the laravel new command will create a fresh Laravel installation in the directory you show. Now, you can use a basic laravel command to create a laravel project installation in your specific folder.

$ laravel new blog

Via Composer Create-Project

Alternatively, you may also install your Laravel by issuing the Composer with the command called create-project command in your terminal,

$ composer create-project --prefer-dist laravel/laravel blog "5.8.*"

Local Development Server where we are checking that if your PHP is installed locally and you would like to use PHP's built-in development server to serve/start your laravel application, you can use the serve Artisan command as given below to run your laravel project. so, the development server will start at: http://localhost:8000: 

$ php artisan serve


So, now your laravel application is fully setup and you can use this application to create your new project with it. Happy Coding.