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


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
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

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

By command line installer

php -r "copy('', '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');"

Set Environment Variables in Window 10

1- Goto Control panel -> System and Security -> System
2- Advanced system settings -> Environment Variables
3- Under "System variables" scroll down and highlight the variable "Path"
4- Click "Edit" then Click "New"
5- Create a new entry "C:\Program Files\PHP"
6- Click "New"
7- Create a new entry "C:\PHP" then OK
8- Under "System variables", click "New"
For "Variable name" put "OPENSSL_CONF"
For "Variable value" put "C:\Program Files\PHP\extras\ssl\openssl.cnf"