Suppose you want to protect your application throughout from cross site request forgery or better known as CSRF? What you can do? Is there any single command we can issue to protect our site from the 'Crackers' or 'Bad Guys'? Yes, there are. Laravel 4.2 ships with plenty of magic for you and all these marvels are lying idle to be explored! Let us see how we can do this. Write this code in your routes.php
'csrf', ['post', 'put', 'patch']);
Voila! This is all you need to protect your site and from the next time you launch your Laravel application, it will take care of all types of cross site request forgery. Is not it nice? And handy? Laravel Learner deals with every major issues you encounter to build your web application with either Laravel 3.2 or Laravel 4.2. And at the end of the book you have a 'github' link from where you can download the source codes. This source code compilation is being maintained actively, so you will get the most updated versions of all kind of features I use in my other Laravel Application. Laravel is one of the most popular PHP Framework present day stealing the show with a few unique technique like 'Composer' and Dependency Injection, IoC Container, Interfaces, 'SOLID' Principle and loosely coupled Object Oriented Approach. But often beginners stumble on the basic concepts which are described in this book with a lot of screenshots that make this book special in the ever increasing world of Laravel Community. Though the book is designed for the beginners the experienced developers might some part thought provoking.
In a nutshell it Chapter One : Requirements – 15 Chapter Two : Istalling Laravel – 18 Chapter 2.1 - Laravel 4 and afterwards- 29 2.2 – Laravel Migration and Artisan – 38 Chapter Three : OOP, Interface, Namespace, Trait, Json – 40 3.1 – Understanding Array -41 3.2 - More Array Examples in PHP – 42 3.3 – Anonymous Functions – 49 3.4 – Object Oriented Programming – 53 3.5 - Introduction to SOLID Design Principle – 56 3.6 - Abstraction and Interface – 59 3.7 - Namespace is very Important – 68 3.8 - Trait, Composer and JSON – 81
Chapter Four : Routing – 86 4.1 – An Application Logic – 86 4.2 – Routing Has Many Roles – 91 4.3 – Routing And Filter – 94 4.4 - Web Application Through Routing – 95
Chapter Five : Routing Best Practices - 123 5.1 - Named Routes - 129 5.2 - Organize files through Route - 131 5.3 – Advanced Concept of Routing - 133
Chapter Six : Controllers – 135 5.1 - RESTful Controller - 141 5.2 - Role of a Controller - 144 5.3 - Resourceful controller - 147 5.4 – Dynamically Created Data - 156 5.5 – Controller, IoC container and Interface - 163
Chapter Six : Blade and View - 177 6.1 - What are Views? - 184 6.2 - What is Blade and Template - 190
Chapter Seven : Form - 209 7.1 – Laravel Form Frist Step - 212 7.2 – Form fields – 216 7.3 – Form Security and Macros – 231
Chapter Twelve : Schema, Migration and Seeding – 475 Chapter 12.1 – Schema – 476 Chap 12.2 – Migrations and Seeding – 480
Chapter Thirteen – Security and Authentication – 495
Chapter Fourteen : Session and Cookies – 524
Chapter Fifteen : Mail – 533
Chapter Sixteen : Composer and Auto-load – 542
Chapter Seventeen : Summarizing our Study – 550
Chapter Eighteen : Final How to Install and Run Laravel 4.2 in Shared Hosting – 554 Finally you learn more about dependency injection, the central part of Laravel - IoC Container, Interfaces, Modular, loosely coupled 'SOLID' design of the structure.