Appends is for serializing the model. You haven't done anything involving serializing ... toArray
toJson
etc.
So what shall I do to add some "virtual fields" to be able to then pass it to view by "compact"?
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community