Laravel hook into Eloquent Query Builder Collection after query?


Is there an elegant or proper way to extend IlluminateDatabaseEloquent to modify the Collection that is returned?

For example I have some code which needs to take some of the data for each model and create a new property by looping through the data.

I prefer not to use a dynamic attribute for this