x
Laravel: Code Happy cover page
Laravel: Code Happy

Suggested

$19.99
Buy Now

Formats Included

Laravel: Code Happy

Application development with the Laravel PHP Framework for beginners.

Buy Now
$9.99
Minimum
$19.99
Suggested

Buy A Bundle And Save

About the Book

IF YOU WOULD PREFER A PRINT COPY, IT IS FOR SALE HERE.

IF YOU ARE LOOKING FOR MY BOOK ABOUT LARAVEL VERSION 4, IT IS FOR SALE HERE.

The book is a guide to Laravel aimed at beginners to the framework who already have some PHP experience. It is structured in the form of guides to core features and stand-alone tutorials. It was written by a core developer of the Laravel framework, and has the support of the framework author.

Please note that this is a publish in progress title, extra chapters may be added at a later date and it will be updated to support future versions of Laravel 3.x for free.

If you would like to pay more than the minimum to support my writing, please do!

Thanks!

Table of Contents

  • Acknowledgements
  • Errata
  • Feedback
  • Introduction
  • 1 Getting Started
  • 1.1 Method 1 Create a new VirtualHost
  • 1.2 Method 2 Symbolic link the public directory.
  • 1.3 Getting back on track..
  • 2 Project Structure
  • 2.1 Root Directory Structure
  • 2.2 Application Directory Structure
  • 3 Using Controllers
  • 3.1 Routing Controllers
  • 3.2 Passing Parameters
  • 3.3 Using Views
  • 3.4 RESTful Controllers
  • 3.5 The Base_Controller
  • 3.6 Advanced Routing
  • 4 Routes With Closures
  • 4.1 Closures
  • 4.2 Redirects and Named Routes
  • 4.3 Filters
  • 4.4 Route Groups
  • 5 Links and URLs
  • 5.1 Retrieving URLs
  • 5.2 Generating Links
  • 6 Forms
  • 6.1 Creating Forms
  • 6.2 Adding Labels
  • 6.3 Generating Inputs
  • 6.4 Generating Buttons
  • 6.5 Secret Inputs
  • 6.6 CSRF Token
  • 6.7 Form Macros
  • 7 Handling Input
  • 7.1 Request data
  • 7.2 Files
  • 7.3 Flash Data
  • 8 Validation
  • 8.1 Set up validation
  • 8.2 Errors
  • 8.3 Validation Rules
  • 8.4 Custom Error Messages
  • 8.5 Custom Validation Rules
  • 8.6 Validation Classes
  • 9 Migrations
  • 9.1 Database Setup
  • 9.2 Migrations
  • 10 Fluent Query Builder
  • 10.1 Retrieving Results
  • 10.2 Where Clauses
  • 10.3 Table Joins
  • 10.4 Ordering
  • 10.5 Limiting.. no Taking
  • 10.6 Skipping Results
  • 10.7 Aggregates
  • 10.8 Expressions
  • 10.9 ++ (or decrementing)
  • 10.10 Insert
  • 10.11 Update
  • 10.12 Delete
  • 11 Eloquent ORM
  • 11.1 Creating and using Eloquent Models
  • 11.2 Relationships
  • 11.3 Inserting Related Models
  • 11.4 Pivot Tables
  • 11.5 Eager Loading
  • 11.6 Setters and Getters
  • 12 Events
  • 12.1 Fire An Event
  • 12.2 Listen for an Event
  • 12.3 Events With Parameters
  • 12.4 Laravel Events
  • 12.5 Example Usage
  • 13 Blade Templates
  • 13.1 The Basics
  • 13.2 Logic
  • 13.3 Blade Layouts
  • 14 Authentication
  • 14.1 Setup
  • 14.2 Setting up the form
  • 14.3 Handling Login
  • 14.4 Protecting Routes
  • 14.5 Customisation
  • 15 The Blog Tutorial
  • 15.1 The Design
  • 15.2 Basic Setup
  • 15.3 Eloquent Models
  • 15.4 Routes
  • 15.5 Views
  • 15.6 Get Coding
  • 15.7 The Future
  • 16 Unit Testing
  • 16.1 Installation
  • 16.2 Creating a Test
  • 16.3 Running Tests
  • 16.4 Testing The Core
  • 17 Caching
  • 17.1 Setup
  • 17.2 Setting values
  • 17.3 Retrieving Values
  • 17.4 A better way
  • 18 Autoloading Classes
  • 18.1 Mappings
  • 18.2 Directory Mapping
  • 18.3 Namespace Mapping
  • 18.4 Mapping Underscores
  • 19 Configuration
  • 19.1 Creating new Configuration Files
  • 19.2 Reading Configuration
  • 19.3 Setting Configuration
  • 20 The IoC Container
  • 20.1 Registering Objects
  • 20.2 Resolving Objects
  • 20.3 Singletons
  • 21 Encryption
  • 21.1 One Way Encryption
  • 21.2 Two Way Encryption
  • 22 AJAX Content
  • 22.1 Page Template
  • 22.2 The Javascript
  • 22.3 Post Data
  • 22.4 JSON Responses
  • 22.5 Detecting an AJAX Request
  • 23 Debugging Applications
  • 23.1 Error Handler
  • 23.2 Error Configuration
  • 23.3 Logging
  • 24 The Future

About the Editor

The Leanpub Unconditional, No Risk, 100% Happiness Guarantee

Within 45 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks. We process the refunds manually, so they may take a few days to show up.
See full terms.