Introduction
What is Laravel?

Laravel is a powerful MVC(Model-View-Controller) PHP framework, created by Taylor Otwell. we install Laravel by composer.

More About Laravel

Laravel written in PHP7

Inital release : June 2011
Current release : 5.6.24 Developed in May 2 2018

Server Requirements

PHP >= 7.1.3
OpenSSL PHP Extension
PDO PHP Extension
Mbstring PHP Extension
Tokenizer PHP Extension
XML PHP Extension
Ctype PHP Extension
JSON PHP Extension

In this Tutorial we follow Laravel 5.6

Model-View-Controller

Models are PHP classes, Model classes contain methods, In Laravel every table have a model this is also called ORM(Object Relationship Model) and Every model have a method(like save()) and properties(column of the table). You can create model folder in any of the location like we create model folder inapp folder

Views we create html webpage that display on website. we save html page in resources->view

Controller is class we create method in controller after that we can access model and view from controllers. In Laravel we access controller from route, we can not directly run controller, model and view.

Laravel Features

Laravel offers the following key features - 

Modularity & Testability
Routing & Configuration management
Query builder and ORM (Object Relational Mapper)
Schema builder, migrations, and seeding
Template engine
E-mailing
Authentication
Redis
Queues
Inbuilt CRSF (cross-site request forgery ) Protection.
Inbuilt paginations
Reverse Routing

What is composer?

Composer is a tool for manage dependency in php. Dependency means suppose you want to install Laravel Framework and Laravel require other packages. so if Install laravel by Composer then laravel install and other required packages is also install.

How to Download composer

By windows installer

Open this website

https://getcomposer.org/download/

then click on Composer-Setup.exe and run it.


By command line installer

php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"

php -r "if (hash_file('SHA384', 'composer-setup.php') === '544e09ee996cdf60ece3804
abc52599c22b1f40f4323403c44d44fdfdd586475ca9813a858088ffbc1f233e9b180f061') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"

php composer-setup.php

php -r "unlink('composer-setup.php');"


Next