You need to read the section on Eloquent Serialization. It explains how to add accessors to the output. Good luck :)
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community