If you would like to translate Code Bright into your language please send an email to with your intentions. I will offer a 50/50 split of the the profits from the translated copy, which will be priced at the same as the English copy.
Please note that the book is written in markdown format.
Introduction
Well, its sure been a long time since Ive written a book chapter. Code Happy was released almost 12 months ago and amassed a total of nearly three thousand sales. Lets see if I still remember how to do this writing thing.
If you have read the previous title you will already know that I am firstly a developer, and secondly a writer. For this reason you wont find any long words in this book. Nothing that would impress Shakespeare (apart from the spelling errors?). What you will get is straight talking, simple to understand information about the Laravel framework. You will also get passion! Not the sweaty bed sheets type of passion, but enthusiasm for the Laravel framework which cannot be rivalled. I like to write my books as if I were standing right in front of you having a conversation. In fact, if you really want a conversation then come and see me in the Laravel IRC channel!
Now its time for one of those little about the author paragraphs. No one really wants to read it, but it never hurts to stroke the ego a little, does it?
My name is Dayle Rees (it says so on the cover!) and I am a web developer and a design enthusiast. I come from a little town on the coast of Wales called Aberystwyth. At the time of writing my last book Code Happy I worked for the National Library of Wales in Aberystwyth, which is one of three copyright libraries in the United Kingdom.
I have since moved to Cardiff, which is the capital city of Wales and have started working with BoxUK. BoxUK is an internet consultancy and development organisation in which I get to work with a team of developers who are passionate about the world of web development.
Web development isnt just my work, its also my hobby. I enjoy finding useful and interesting pieces of code or beautiful designs. I believe that our skills let us do wonderfully creative things, and I love seeing ideas come to life.
A little over a year ago I began helping the Laravel community with bundles of code, web designs, and helping out any way that I could. Since then my involvement has increased. Laravel is now my primary open source project and I am now a member of the core development team for the framework.
With Laravel 4 (codenamed Illuminate) my involvement has hit a new high. I have been working alongside Taylor Otwell to make this release the best framework that you will have ever used. Dont take my word for it! Start using it and thank us later when you cant stop smiling while coding.
Laravel is an example of how even a development tool can be creative. Laravels beautiful syntax straight from the genius mind of Taylor Otwell cannot be rivalled. It enables us to write code that will read like nerd poetry, and will allow us to enjoy our coding tasks.
So Dayle, what has changed since the last release of the framework?
The simple yet confusing answer is everything and nothing!
Laravel 4 has been rewritten from the ground up, allowing for increased flexibility and testability along with a billion (not entirely accurate - dont count them) new features. Where Laravel 3 gave you some freedom with how to structure your code, Laravel 4 will allow hackers to go wild and change the framework to suit their needs.
When I hear that something has improved I am always looking for a catch, but with Laravel 4 there isnt one. It still has the beautiful and expressive syntax you love; you might even find that you love it more!
So why did you write a new book?
Code Happy covered the version stretch between 3.0 and 3.2.x, and with nearly three thousand copies sold I must have done something right. Sure, I could have probably re-worked the entire book to work with Laravel 4. However, this version of the framework is reinvention. If I was to update the book you would lose all the information about version 3 which I believe is still great framework. Many people will have large projects based on Laravel 3 and I think that they should have access to the information in Code Happy if they need it.
Then theres my own experiences. I have learned a lot about writing a book since finishing Code Happy. I have learned about my common mistakes, which I can now avoid. I can improve on what I have already done, and I hope to do so.
I didnt read Code Happy! Should I read that first?
You can if you want to, I put some funny jokes in there. However this book is one for beginners, and so we will start from the very basics. If you have already been using Laravel go ahead and skip to the interesting bits to see what has changed. If you are new to the framework then I would suggest you stick with me and read it from cover to cover. Dont worry! I will try to keep it interesting. Soon you will be building wonderfully expressive PHP applications with Laravel.