3 Basic Steps for Laravel Installation

3 steps for Laravel installation:
- Install XAMPP
- Install Composer
- Install Laravel
All the steps here are for Windows users
- Instal XAMPP
First, you need to install XAMPP. XAMPP is needed because we need all of the components inside XAMPP. This installation will give you PHP, PERL, MySQL/MariaDB, and of course Apache server. You can download XAMPP here.
MySQL was replaced with MariaDB on 2015–10–19 and beginning with XAMPP versions 5.5.30 and 5.6.14
- Install Composer
Second, we need Composer. What is Composer?
Composer is a dependency management. That’s it! If you want to install some dependencies in your Laravel project, use Composer. Composer will maintain these dependencies. In real Laravel projects, we often need Composer to make models, controllers, migrations, etc.
So, before using Laravel, make sure you have Composer installed on your machine. Download the Composer here.
- Install Laravel
Last thing, let’s install Laravel with our Composer! Open the command prompt and navigate to your destination project folder. For example, I have a projects folder in C:
cd C:/projects
Then at your command prompt, type below:
composer create-project --prefer-dist laravel/laravel blog
The “blog” is the name of your preferred project name. If you see in your explorer, there will be a new folder in C:/projects/blog (or whatever name you give it). Inside the folder is the Laravel starter package.
You can start the Laravel with:
php artisan serve
Now the Laravel is running. Open your browser and go to http://localhost:8000 and see if Laravel homepage already there
