Tuesday, 16 October 2018

Laravel : Installation

For managing dependencies, Laravel uses 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.

Make sure you have a Composer installed on your system before you install Laravel. In this tutorial, you will see the installation process of Laravel. You will have to follow the steps given below for installing Laravel onto your system –
Step 1 − Visit the following URL and download composer to install it on your system.
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.

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

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 –

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.


Posted by : Juhaidah binti Jatu

0 comments:

Post a Comment