Source code for chapter 6 of Laravel in Action