Open In App

Laravel | Installation and Configuration

Laravel is a PHP framework that makes building complex web applications a cakewalk. In this guide you are going to learn how to Install and Configure Laravel and get your first Laravel project running in your computer. 

Prerequisites: 



Steps to install Laravel:  

composer

If it gives an output like given below then it means the installation was successful and we can go to the next step. 



composer create-project --prefer-dist laravel/laravel my-first-laravel-project

Here, create-project is a composer command which is just downloading the package and installing all the dependencies further needed by this package and then we have this –prefer-dist which means just prefer the stable version releases if possible, next we mention name of package which is laravel/laravel and my-first-laravel-project is actually the name of project folder and you can replace it with any name that you want. This will start the installation of all dependencies as given in the image below. 

If everything went well then end of this script will look like this: 

php artisan serve

This will give an output like given below: 

Note: The link really depends on your system, it can be http://localhost:8000 also.

 

Article Tags :