Source code for Laravel in action book, chapter 4