Laravel: Code Bright
Laravel: Code Bright
Web application development for the Laravel framework version 4 for beginners.
About the Book
Hi again!
TL DR; This title is the successor to Laravel Code Happy, which sold almost 3000 copies last year, and was considered one of the top learning resources for the Laravel framework. At $29 and cheaper than a good pizza, you will get the book in its current partial form, along with all future chapters, updates, and fixes for free. As of the day I last updated this description, Code Bright had 260 pages and was just getting started. To give you some perspective on how detailed it is, Code Happy was 127 pages in its complete state. Want to know more? Carry on reading.
Welcome back to Laravel. Last year I wrote a book about the Laravel PHP framework. It started as a collection of tutorials on my blog, and eventually became a full book. I definitely didn’t expect it to be as popular as it was. Code Happy has sold almost 3000 copies, and is considered to be one of the most valuable resources for learning the Laravel framework.
Code Bright is the spiritual successor to Code Happy. The framework has grown a lot in the past year, and has changed enough to merit a new title. With Code Bright I hope to improve on Code Happy with every way, my goal is, to once again, build the most comprehensive learning experience for the framework. Oh, and to still be funny. That’s very important to me.
Laravel Code Bright will contain a complete learning experience for all of the framework’s features. The style of writing will make it approachable for beginners, and a wonderful reference resource for experienced developers alike.
You see, people have told me that they enjoyed reading Code Happy, not only for its educational content, but for its humour, and for my down to earth writing style. This is very important to me. I like to write my books as if we were having a conversation in a bar.
When I wrote Code Happy last year, I was simply a framework enthusiast. One of the first to share information about the framework. However, since then I have become a committed member of the core development team. Working directly with the framework author to make Laravel a wonderful experience for the developers of the world.
One other important feature of both books, is that they are published while in progress. This means that the book is available in an incomplete state, but will grow over time into a complete title. All future updates will be provided for free.
What this means is that I don’t have to worry about deadlines, or a fixed point of completion. It leads to less stress and better writing. If I think of a better way to explain something, I can go back and change it. In a sense, the book will never be completed. I can constantly add more information to it, until it becomes the perfect resource.
Given that this time I am using the majority of my spare time to write the title (yes, I have a full time job too!), I have raised the price a little to justify my invested time. I was told by many of my past readers that they found the previous title very cheap for the resource that it grew into, so if you are worried about the new price, then let me remind you what you will get for your 29 bucks.
- The successor to Code Happy, seen by many as the #1 learning resource for the Laravel PHP framework.
- An unending source of information, chapters will be constantly added as needed until the book becomes a giant vault of framework knowledge.
- Comedy, and a little cheesy, but very friendly writing.
- Free updates for life! This includes all of the updates made to keep the book compatible with version 4.x of the framework. You will receive an email whenever an addition has been made to the title.
- Early information from a Laravel core developer.
- Support my future writing. I’d love to write more, and have some more books in mind for the future! Including some topics other than Laravel.
- My full attention. Find something you don’t like about the book? Let me know, and I’ll see if I can improve it!
- A photo of a red panda on the cover. Seriously, they are cute right?
All that for cheaper than a (good) pizza? Sounds like a deal to me!
Still not convinced? Let me share with you what Laravel’s author, and some of my readers have to say about my writing.
"Dayle Rees has been a central figure in the Laravel community for a long time. He's well known not only for his knowledge of the framework, but also his friendly attitude and keen ability to explain Laravel concepts to beginners. There are few people as qualified as Dayle to write a thorough introduction to the Laravel framework. With Code Bright, he continues the same accessible style that made Code Happy such a great introduction to Laravel 3." - Taylor Otwell, Framework Author.
"Reading Dayle's 'Code Happy' made it super easy to get up and going with Laravel. Even with the more advanced topics, his was of explaining things without complicating things is a talent in itself." - Chris Duell
"The holy grail for anyone wanting to learn Laravel." - Rujaun
"Code Happy allowed me to get up to speed super quick! Very entertaining read that keeps you engaged and wanting more! Thanks!" - Mike Rogne
"I bought Code Happy at the behest of Jeffrey Way's Laravel's Essentials course, and the wealth of knowledge available in this book is phenomenal. It is nice to purchase books from professionals who know what they're writing about, but as a Laravel Core Development team member Dayle gives you insight few others can. Dayle goes into every detail of the Laravel Framework, from Laravels amazing schema system to eloquent and beyond this book offers a wealth of knowledge worth having. I create Laravel tutorials on Youtube and Code Happy has been an invaluable tool. I couldn't have done any of it without this book." - Kristopher Rapier
“I used other frameworks in the past and then Laravel started to showed up in my twitter timeline. I was a happy coder with my framework of choice but I was seeing a lot of people moving out to Laravel. The website was nice, the documentation was clear and helpful but then I bought Code Happy just to have a big view on how Laravel worked. I end up loving the Laravel syntax, expressiveness and having a real idea how a Laravel app worked in no-time. I finally switched.” - Isern Palaus
”Code Happy was my launching pad into the PHP world. I had tried for quite some time to wrap my head around using a framework, it just never did quite stick. Once I got hold of code happy it all started to make sense. I completed my first Laravel application in a couple of weeks time and haven't looked back..” - Zane Conkle
”At the beginning of 2013, I decided to have a look at PHP Frameworks with the aim of finding something I could use both for my day job and personal projects. I asked Jeffrey Way for advice and he pointed me in Laravel's direction. To be honest, I had never heard of Laravel but a quick search on Google for tutorials revealed very good reviews for Dayle Rees' Laravel tutorials. I bought Dayle's Code Happy book and up to date, remains the best thing I've bought in the near past. The casual way with which he explains the concepts was very useful to my learning. The book covers everything you need to know to create a full Laravel web application. In fact, I am in the process of creating an in-house CMS (for my place of work) based on Laravel, two months after writing my first Laravel 'Hello World'. But the first tab on my browser window is always codehappy.daylerees.com, which remains my main point of reference. Thanks for the great job!” - James K. Ilaki
”Dayle's conversational style writing makes it feel like you have a more experienced developer buddy peering over your shoulder, helping you along. If I just wanted to know how something works, I would read the documentation, but the book also explains why it's useful, and when and where to use it!” - Rob Meijer
Bundles that include this book
Table of Contents
- Acknowledgements
- Errata
- Feedback
- Translations
- Introduction
-
The Primers
- Namespaces
- JSON
- Composer
-
Architecture
- The Container
- Facades
- Flexibility
- Robustness
-
Getting Started
- Requirements
- Installation
- Web Server Configuration
- Project Structure
-
Basic Routing
- Basic Routing
- Route Parameters
-
Responses
- Views
- View Data
- Redirects
- Custom Responses
- Response Shortcuts
-
Filters
- Basic Filters
- Multiple Filters
- Filter Parameters
- Filter Classes
- Global Filters
- Default Filters
- Pattern Filters
-
Controllers
- Creating Controllers
- Controller Routing
- RESTful Controllers
-
Blade
- Creating Templates
- PHP Output
- Control Structures
- Templates
- Template Inheritance
- Comments
-
Advanced Routing
- Named Routes
- Secure Routes
- Parameter Constraints
- Route Groups
- Route Prefixing
- Domain Routing
-
URL Generation
- The current URL
- Generating Framework URLs
- Asset URLs
- Generation Shortcuts
-
Request Data
- Retrieval
- Old Input
- Uploaded Files
- Cookies
-
Forms
- Opening Forms
- Form Fields
- Form Buttons
- Form Macros
- Form Security
-
Validation
- Simple Validation
- Validation Rules
- Error Messages
- Custom Validation Rules
- Custom Validation Messages
-
Databases
- Abstraction
- Configuration
- Preparing
-
Schema Builder
- Creating Tables
- Column Types
- Special Column Types
- Column Modifiers
- Updating Tables
- Dropping Tables
- Schema Tricks
-
Migrations
- Basic Concept
- Creating Migrations
- Running Migrations
- Rolling Back
- Migration Tricks
-
Eloquent ORM
- Creating new models.
- Reading Existing Models
- Updating Existing Models
- Deleting Existing Models
-
Eloquent Queries
- Preperation
- Eloquent To String
- Query Structure
- Fetch Methods
- Query Constraints
- Magic Where Queries
- Query Scopes
-
Eloquent Collections
- The Collection Class
- Collection Methods
- Best Practice
-
Eloquent Relationships
- Introduction to Relationships
- Implementing Relationships
- Relating and Querying
-
Build An App 1: Playstation Game Collection
- Let’s think this through
- Time to get hacking!
- Database
- Controller
- Routes
- Views
- Application Logic
- Relax
- Homework
- Authentication
-
Where does it go?
- Procedural Code
- Object-oriented code
-
Events
- Concept
- Firing Events
- Listening for Events
- Event Subscribers
- Global Events
- Use Cases
-
The Container
- Inversion of Control
- Dependency Injection
- Coming Soon
Other books by this author
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.
See full terms
Do Well. Do Good.
Authors have earned$11,721,492writing, publishing and selling on Leanpub, earning 80% royalties while saving up to 25 million pounds of CO2 and up to 46,000 trees.
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), EPUB (for phones and tablets) and MOBI (for 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
Top Books
Recipes for Decoupling
Matthias NobackWrite software that survives
CQRS by Example
Carlos Buenosvinos, Christian Soronellas, and Keyvan Akbary- Leverage your Software Architecture skills by learning everything about CQRS in detail with lots of examples
- Develop faster applications by applying CQRS and fostering Read Models and Projections
- Learn how to apply CQRS into a brownfield project from a pragmatic approach
OpenIntro Statistics
David Diez, Christopher Barr, Mine Cetinkaya-Rundel, and OpenIntroA complete foundation for Statistics, also serving as a foundation for Data Science.
Leanpub revenue supports OpenIntro (US-based nonprofit) so we can provide free desk copies to teachers interested in using OpenIntro Statistics in the classroom and expand the project to support free textbooks in other subjects.
More resources: openintro.org.
Maîtriser Apache JMeter
Philippe Mouawad, Bruno Demion (Milamber), and Antonio Gomes RodriguesToute la puissance d'Apache JMeter expliquée par ses commiteurs et utilisateurs experts. De l'intégration continue en passant par le Cloud, vous découvrirez comment intégrer JMeter à vos processus "Agile" et Devops.
If you're looking for the newer english version of this book, go to Master JMeter : From load testing to DevOps
C++20 - The Complete Guide
Nicolai M. JosuttisAll new language and library features of C++20 (for those who know previous C++ versions).
The book presents all new language and library features of C++20. Learn how this impacts day-to-day programming, to benefit in practice, to combine new features, and to avoid all new traps.
Buy early, pay less, free updates.
Other books:
Jetpack Compose internals
Jorge CastilloJetpack Compose is the future of Android UI. Master how it works internally and become a more efficient developer with it. You'll also find it valuable if you are not an Android dev. This book provides all the details to understand how the Compose compiler & runtime work, and how to create a client library using them.
Ansible for DevOps
Jeff GeerlingAnsible is a simple, but powerful, server and configuration management tool. Learn to use Ansible effectively, whether you manage one server—or thousands.
Mastering STM32 - Second Edition
Carmine NovielloWith more than 1200 microcontrollers, STM32 is probably the most complete ARM Cortex-M platform on the market. This book aims to be the most complete guide around introducing the reader to this exciting MCU portfolio from ST Microelectronics and its official CubeHAL and STM32CubeIDE development environment.
Rector - The Power of Automated Refactoring
Matthias Noback and Tomas VotrubaLearn how to automatically and continuously upgrade and improve your PHP code base
The Hundred-Page Machine Learning Book
Andriy BurkovEverything you really need to know in Machine Learning in a hundred pages.
Top Bundles
- #2
CCIE Service Provider Ultimate Study Bundle
2 Books
Piotr Jablonski, Lukasz Bromirski, and Nick Russo have joined forces to deliver the only CCIE Service Provider training resource you'll ever need. This bundle contains a detailed and challenging collection of workbook labs, plus an extensively detailed technical reference guide. All of us have earned the CCIE Service Provider certification... - #3
Pattern-Oriented Memory Forensics and Malware Detection
2 Books
This training bundle for security engineers and researchers, malware and memory forensics analysts includes two accelerated training courses for Windows memory dump analysis using WinDbg. It is also useful for technical support and escalation engineers who analyze memory dumps from complex software environments and need to check for possible... - #4
Software Architecture
2 Books
"Software Architecture for Developers" is a practical and pragmatic guide to modern, lightweight software architecture, specifically aimed at developers. You'll learn:The essence of software architecture.Why the software architecture role should include coding, coaching and collaboration.The things that you really need to think about before... - #5
Static Analysis and Automated Refactoring
2 Books
As PHP developers we are living in the "Age of Static Analysis". We can use a tool like PHPStan to learn about potential bugs before we ship our code to production, and we can enforce our team's programming standards using custom PHPStan rules. Recipes for Decoupling by Matthias Noback teaches you in great detail how to do this, while also... - #9
All the Books of The Medical Futurist
6 Books
We put together the most popular books from The Medical Futurist to provide a clear picture about the major trends shaping the future of medicine and healthcare. Digital health technologies, artificial intelligence, the future of 20 medical specialties, big pharma, data privacy, digital health investments and how technology giants such as Amazon...