Source code for chapter 5 of Laravel in Action