Laravel: Code Happy
Laravel: Code Happy
Application development with the Laravel PHP Framework for beginners.
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!
Bundles that include this book
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
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 earnedover $14 millionwriting, 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