What is Laravel and how to install at localhost?

By Harsh Aggrawal | Jul, 08 2018 05:02

What is Laravel and how to install at localhost?

Laravel is the PHP web framework, created by Taylor Otwell. Laravel is open source which freely available for anyone. Laravel - intended for the development of web applications following the model–view–controller (MVC) architectural pattern and based on Symfony. Following are steps, to install / setup laravel on your localhost(Wamp/Xampp server).
  1. First of all download COMPOSER (Composer is an application-level package manager for the PHP programming language that provides a standard format for managing dependencies of PHP software and required libraries). Composer help developer for creating controllers and views and so many dependencies which required by MVC.</li> <li>Install compose from the give link https://getcomposer.org/download/ , then goto manual download https://getcomposer.org/Composer-Setup.exe for first time user and windows OS user.</li> <li>Create your first directory using composer command in CMD.</li> <li>First type composer to check it is install properly or not.it seems like that.</li> <li>Then set directory path of www or htdocs in wamp or xampp simultaneously.\</li> <li>Then type composer command composer create-project --prefer-dist laravel/laravel blog.</li> <li>Now your first project on laravel is created successully.</li> <li>Now you can run by two methods... <ol> <li>Using composer command php artisan serve .</li> <li>Second open localhost > lab > public.</li> </ol> </li> <li>End.</li> </ol> <xmp>Next Blog on how to create controller and model using composer and create view. We can also learn about file structure of Laravel.

    Thank You for reading....


0 comments

No comment posted yet

Leave a comment