Pushing logic to custom collections

This is a technique that I recently found useful. Eloquent models allow you to specify a custom collection object to be returned — which sometimes can be a great place to put some business logic.

https://michaelstivala.com/pushing-logic-custom-collections/