Laravel is an open-source widely used PHP framework for web applications development.
In this article, we will see Laravel 8 installation. In this tutorial, I will show you step-by-step complete processes like system requirements and installation of Laravel 8.
Let’s get started.
System Requirements – Laravel 8 Framework
To develop a Laravel application, we should have some PHP configuration on our system.
So, before going to Laravel 8 installation, we make sure the following configuration is already in our system.
PHP & Server ConfigurationComposer
Step 1 − Visit the following URL and download composer to install it on your system.
To install it, open up a terminal and cd into a new directory. Run this command:
curl -Ss getcomposer.org/installer | php
Laravel 8 Installation
Step 2 − After the Composer is installed, check the installation by typing the Composer command in the command prompt as shown in the following screenshot.
Open up Command Prompt and type
If it is installed in your system, you will see the version number.
Step 3 − Create a new directory anywhere in your system for your new Laravel project.
After that, move to the path where you have created the new directory and type the following command there to install Laravel on your development system.
composer create-project –prefer-dist laravel/laravel <project-name>
composer create-project –prefer-dist laravel/laravel laravel-demoapp
Step 4 − The above command will install Laravel in the current directory.
Go to the project folder using the command prompt and Start the Laravel service by executing the following command.
php artisan serve
Step 5 – After executing the above command, you will see a screen as shown below
Step 6 − Copy the URL in the above screenshot and open that URL in the browser.
If you see the following screen, it implies Laravel has been installed successfully.
I hope this article helped you to learn Laravel 8 Installation in the system.