Skip to content

Laravel Beginner Tutorial | Complete Guide To Install Laravel On Windows

  • by

The following are the steps required to install the Laravel :

For managing dependencies, Laravel uses composer. Make sure you have a Composer installed on your system before you install Laravel. In this post, you will see the Laravel installation and Overview

Step 1 Click on the link given below to download and download composer to install it on your system.

https://getcomposer.org/download/

Step 2 After the Composer is installed, now we will check whether the composer is installed successfully or not. To check this, open the command prompt and type Composer . command in the command prompt as shown in the following screenshot.

composer

The above screen shows that the composer has been installed successfully.

Step 3 − Create a new directory anywhere in your system for your new Laravel project. After that, move to path where you have created the new directory and type the following command there to install Laravel.

composer create-project laravel/laravel –-prefer-dist

you can install the complete framework by typing the following command −

composer create-project laravel/laravel test dev-develop

The Laravel framework can be directly installed with develop branch which includes the latest framework.

Step 4 − The above command will install Laravel in the current directory. 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 −

php artisan serve

Step 6 − Copy the URL underlined in gray in the above screenshot and open that URL in the browser. If you see the following screen, it implies Laravel has been installed successfully.

Laravel Beginner Tutorial | Complete Guide To Install Laravel On Windows

Laravel – Overview

Laravel is an open-source PHP framework, which is robust and easy to understand. It follows a model-view-controller design pattern. Laravel reuses the existing components of different frameworks which helps in creating a web application. The web application thus designed is more structured and pragmatic.

Laravel offers a rich set of functionalities which incorporates the basic features of PHP frameworks like CodeIgniter, Yii and other programming languages like Ruby on Rails. Laravel has a very rich set of features which will boost the speed of web development.

If you are familiar with Core PHP and Advanced PHP, Laravel will make your task easier. It saves a lot time if you are planning to develop a website from scratch. Moreover, a website built in Laravel is secure and prevents several web attacks.

Advantages of Laravel

Laravel offers you the following advantages, when you are designing a web application based on it −

  • The web application becomes more scalable, owing to the Laravel framework.
  • Considerable time is saved in designing the web application, since Laravel reuses the components from other framework in developing web application.
  • It includes namespaces and interfaces, thus helps to organize and manage resources.

Composer

Composer is a tool which includes all the dependencies and libraries. It allows a user to create a project with respect to the mentioned framework (for example, those used in Laravel installation). Third party libraries can be installed easily with help of composer.

All the dependencies are noted in composer.json file which is placed in the source folder.

Routing

Laravel provides a flexible approach to the user to define routes in the web application. Routing helps to scale the application in a better way and increases its performance.

Leave a Reply

Your email address will not be published. Required fields are marked *