Matt Stauffer has a post to his site sharing a few things he didn't know Laravel could do as discovered during his work on his book Laravel Up & Running.
It turns out that there's a long road between "I have a book contract" and "I know everything there is to know in order to write this book."It doesn't matter how much of an expert you feel like. It doesn't matter how much time you've spent learning and teaching. Across the board, every tech author I've talked to has described just how much they learned—had to learn—when they wrote a book.
I learned a lot in writing Laravel: Up and Running. And I want to share it with you.
He includes a list of four of the interesting things he learned during his writing:
- The Cookie Facade is one special cookie
- Attaching files to emails is easier than you think
- You can chain more Scheduler methods than the docs show
- You can assert that a view gets passed certain data
Each item also comes with a brief code example showing it in action. If you'd like more information about the book and a free sample, be sure to sign up using the form in the post or you can just pre-order the book and get the whole thing as soon as it's released.