Eoghan O'Brien
fullstack developer

Define a custom collection for your Eloquent model

Many Laravel newbies don't know that you can customize the collection returned by a query, so they end up writing tons of after-query functions to wrangle their results. I know a better way.

read more