Leanpub Header

Skip to main content

Laravel 5.0.x Docs

Bleeding edge version created from 5.0 branch of official documentation

This book is an up-to-date compilation of the official documentation pages, for 5.0.x version of Laravel, hosted on http://laravel.com/docs to help the community to have an easy to read & organized offline documentation that can be used as a portable reference.
Free With Membership

With Membership

Free!

$7.99

You pay

$7.99

Author earns

$6.39
$

...Or Buy With Credits!

You can get credits monthly with a Reader Membership
PDF
EPUB
WEB
2,298
Readers
398
Pages
About

About

About the Book

This book is an up-to-date compilation of the official documentation pages hosted on http://laravel.com/docs to help the community to have an easy to read & organised offline documentation that can be used as a portable reference.

I will try my best to keep this book in sync with the official documentation by reviewing the changes in documentation repo periodically. If you find any error in the documentation or want to contribute, please feel free to fork the documentation repo in github and send pull request with corrections/enhancements. When your pull request will be accepted & merged into the repo, those updates will automatically be available in this book through next periodic sync.

Share this book

Categories

License

Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License

Author

About the Author

M N Islam Shihan

Founder & CTO at Sphinx Corporation

An accomplished Software Engineer & Leader specializing in Object-Oriented Design and Analysis with extensive experience in the full life cycle of the software design process including requirement analysis, prototyping, proof of concept, design of application, platform and user interface architecture design, implementation, testing and maintenance. Additional expertise includes project management and strong communication skills on both technical and business domains.

Social Profiles

Contents

Table of Contents

Prologue

Release Notes

  1. Support Policy
  2. Laravel 5.0
  3. Laravel 4.2
  4. Laravel 4.1

Upgrade Guide

  1. Upgrading To 5.0.16
  2. Upgrading To 5.0 From 4.2
  3. Upgrading To 4.2 From 4.1
  4. Upgrading To 4.1.29 From <= 4.1.x
  5. Upgrading To 4.1.26 From <= 4.1.25
  6. Upgrading To 4.1 From 4.0

Contribution Guide

  1. Bug Reports
  2. Core Development Discussion
  3. Which Branch?
  4. Security Vulnerabilities
  5. Coding Style
  6. Setup

Installation

  1. Install Composer
  2. Install Laravel
  3. Server Requirements
  4. Configuration
  5. Pretty URLs

Configuration

  1. Introduction
  2. After Installation
  3. Accessing Configuration Values
  4. Environment Configuration
  5. Configuration Caching
  6. Maintenance Mode
  7. Pretty URLs

Laravel Homestead

  1. Introduction
  2. Included Software
  3. Installation & Setup
  4. Daily Usage
  5. Ports
  6. Blackfire Profiler
  7. The Basics

HTTP Routing

  1. Basic Routing
  2. CSRF Protection
  3. Method Spoofing
  4. Route Parameters
  5. Named Routes
  6. Route Groups
  7. Route Model Binding
  8. Throwing 404 Errors

HTTP Middleware

  1. Introduction
  2. Defining Middleware
  3. Registering Middleware
  4. Terminable Middleware

HTTP Controllers

  1. Introduction
  2. Basic Controllers
  3. Controller Middleware
  4. Implicit Controllers
  5. RESTful Resource Controllers
  6. Dependency Injection & Controllers
  7. Route Caching

HTTP Requests

  1. Obtaining A Request Instance
  2. Retrieving Input
  3. Old Input
  4. Cookies
  5. Files
  6. Other Request Information

HTTP Responses

  1. Basic Responses
  2. Redirects
  3. Other Responses
  4. Response Macros

Views

  1. Basic Usage
  2. View Composers
  3. Architecture Foundations

Service Providers

  1. Introduction
  2. Basic Provider Example
  3. Registering Providers
  4. Deferred Providers

Service Container

  1. Introduction
  2. Basic Usage
  3. Binding Interfaces To Implementations
  4. Contextual Binding
  5. Tagging
  6. Practical Applications
  7. Container Events

Contracts

  1. Introduction
  2. Why Contracts?
  3. Contract Reference
  4. How To Use Contracts

Facades

  1. Introduction
  2. Explanation
  3. Practical Usage
  4. Creating Facades
  5. Mocking Facades
  6. Facade Class Reference

Request Lifecycle

  1. Introduction
  2. Lifecycle Overview
  3. Focus On Service Providers

Application Structure

  1. Introduction
  2. The Root Directory
  3. The App Directory
  4. Namespacing Your Application
  5. Services

Authentication

  1. Introduction
  2. Authenticating Users
  3. Retrieving The Authenticated User
  4. Protecting Routes
  5. HTTP Basic Authentication
  6. Password Reminders & Reset
  7. Social Authentication

Laravel Cashier

  1. Introduction
  2. Configuration
  3. Subscribing To A Plan
  4. Single Charges
  5. No Card Up Front
  6. Swapping Subscriptions
  7. Subscription Quantity
  8. Subscription Tax
  9. Cancelling A Subscription
  10. Resuming A Subscription
  11. Checking Subscription Status
  12. Handling Failed Subscriptions
  13. Handling Other Stripe Webhooks
  14. Invoices

Cache

  1. Configuration
  2. Cache Usage
  3. Increments & Decrements
  4. Cache Tags
  5. Cache Events
  6. Database Cache

Collections

  1. Introduction
  2. Basic Usage

Command Bus

  1. Introduction
  2. Creating Commands
  3. Dispatching Commands
  4. Queued Commands
  5. Command Pipeline

Extending The Framework

  1. Managers & Factories
  2. Cache
  3. Session
  4. Authentication
  5. Service Container Based Extension

Laravel Elixir

  1. Introduction
  2. Installation & Setup
  3. Usage
  4. Gulp
  5. Custom Tasks and Extensions

Encryption

  1. Introduction
  2. Basic Usage

Envoy Task Runner

  1. Introduction
  2. Installation
  3. Running Tasks
  4. Multiple Servers
  5. Parallel Execution
  6. Task Macros
  7. Notifications
  8. Updating Envoy

Errors & Logging

  1. Configuration
  2. Handling Errors
  3. HTTP Exceptions
  4. Logging

Events

  1. Basic Usage
  2. Queued Event Handlers
  3. Event Subscribers

Filesystem / Cloud Storage

  1. Introduction
  2. Configuration
  3. Basic Usage
  4. Custom Filesystems

Hashing

  1. Introduction
  2. Basic Usage

Helper Functions

  1. Arrays
  2. Paths
  3. Routing
  4. Strings
  5. URLs
  6. Miscellaneous

Localization

  1. Introduction
  2. Language Files
  3. Basic Usage
  4. Pluralization
  5. Validation
  6. Overriding Package Language Files

Mail

  1. Configuration
  2. Basic Usage
  3. Embedding Inline Attachments
  4. Queueing Mail
  5. Mail & Local Development

Package Development

  1. Introduction
  2. Views
  3. Translations
  4. Configuration
  5. Public Assets
  6. Publishing File Groups
  7. Routing

Pagination

  1. Configuration
  2. Usage
  3. Appending To Pagination Links
  4. Converting To JSON

Queues

  1. Configuration
  2. Basic Usage
  3. Queueing Closures
  4. Running The Queue Listener
  5. Daemon Queue Worker
  6. Push Queues
  7. Failed Jobs

Session

  1. Configuration
  2. Session Usage
  3. Flash Data
  4. Database Sessions
  5. Session Drivers

Templates

  1. Blade Templating
  2. Other Blade Control Structures

Testing

  1. Introduction
  2. Defining & Running Tests
  3. Test Environment
  4. Calling Routes From Tests
  5. Mocking Facades
  6. Framework Assertions
  7. Helper Methods
  8. Refreshing The Application

Validation

  1. Basic Usage
  2. Controller Validation
  3. Form Request Validation
  4. Working With Error Messages
  5. Error Messages & Views
  6. Available Validation Rules
  7. Conditionally Adding Rules
  8. Custom Error Messages
  9. Custom Validation Rules
  10. Database

Basic Database Usage

  1. Configuration
  2. Read / Write Connections
  3. Running Queries
  4. Database Transactions
  5. Accessing Connections
  6. Query Logging

Query Builder

  1. Introduction
  2. Selects
  3. Joins
  4. Advanced Wheres
  5. Aggregates
  6. Raw Expressions
  7. Inserts
  8. Updates
  9. Deletes
  10. Unions
  11. Pessimistic Locking

Eloquent ORM

  1. Introduction
  2. Basic Usage
  3. Mass Assignment
  4. Insert, Update, Delete
  5. Soft Deleting
  6. Timestamps
  7. Query Scopes
  8. Global Scopes
  9. Relationships
  10. Querying Relations
  11. Eager Loading
  12. Inserting Related Models
  13. Touching Parent Timestamps
  14. Working With Pivot Tables
  15. Collections
  16. Accessors & Mutators
  17. Date Mutators
  18. Attribute Casting
  19. Model Events
  20. Model Observers
  21. Model URL Generation
  22. Converting To Arrays / JSON

Schema Builder

  1. Introduction
  2. Creating & Dropping Tables
  3. Adding Columns
  4. Changing Columns
  5. Renaming Columns
  6. Dropping Columns
  7. Checking Existence
  8. Adding Indexes
  9. Foreign Keys
  10. Dropping Indexes
  11. Dropping Timestamps & SoftDeletes
  12. Storage Engines

Migrations & Seeding

  1. Introduction
  2. Creating Migrations
  3. Running Migrations
  4. Rolling Back Migrations
  5. Database Seeding

Redis

  1. Introduction
  2. Configuration
  3. Usage
  4. Pipelining
  5. Artisan CLI

Artisan CLI

  1. Introduction
  2. Usage
  3. Calling Commands Outside Of CLI
  4. Scheduling Artisan Commands

Artisan Development

  1. Introduction
  2. Building A Command
  3. Registering Commands

The Leanpub 60 Day 100% Happiness Guarantee

Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

Now, this is technically risky for us, since you'll have the book or course files either way. But we're so confident in our products and services, and in our authors and readers, that we're happy to offer a full money back guarantee for everything we sell.

You can only find out how good something is by trying it, and because of our 100% money back guarantee there's literally no risk to do so!

So, there's no reason not to click the Add to Cart button, is there?

See full terms...

Earn $8 on a $10 Purchase, and $16 on a $20 Purchase

We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.

(Yes, some authors have already earned much more than that on Leanpub.)

In fact, authors have earned over $14 million writing, publishing and selling on Leanpub.

Learn more about writing on Leanpub

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.

Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub