Thursday, 3 August 2017

Laravel - Installation


For managing dependencies, Laravel uses composer. Make sure you have a Composer installed on your system before you install Laravel.
Step 1 − Visit the following URL and download composer to install it on your system.
https://getcomposer.org/download/
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.

Related Posts:

  • Laravel - Overview Introduction Laravel is a MVC framework with bundles, migrations, and Artisan CLI. Laravel offers a robust set of tools and an application archite… Read More
  • Laravel - Application Structure Root Directory The root directory of Laravel contains various folders and files as shown in the following figure. app − This directory contains… Read More
  • Laravel - Configuration The config directory, as the name implies, contains all of your application's configuration files. In this directory, you will find various files n… Read More
  • Laravel - Installation For managing dependencies, Laravel uses composer. Make sure you have a Composer installed on your system before you install Laravel. Step 1 − Visit… Read More
  • Laravel - Routing Basic Routing Basic routing is meant to route your request to an appropriate controller. The routes of the application can be defined in app/Http/… Read More

0 comments:

Post a Comment