A set of useful Laravel collection macros
Macros for INSERT ON DUPLICATE KEY UPDATE and INSERT IGNORE with Eloquent
A set of helpful macros for Laravel Eloquent query builder
In this lesson, we'll review the process of creating custom form macros for your views. We'll then move on to a more object-oriented approach (as illustrated by Chris Hayes) for this task, while continuously testing (with PHPSpec) and refactoring our work.