I'm trying to get an Eloquent collection with the next line:
Document::with('more_information')->anyScope()->get()
I'm getting a collection with 20 "columns", but I want to add another one to format a date in order to easily interact with other components instead of format the date in each component.
To add this column I can rewrite the 21 column names and write more lines to get the collections that invoke with my with...but that doesn't look good...
Is there a way to simply to add my 21st column without rewrite the other 20?
I read something about addSelect, but in my code it ignores my 20 first columns