Support the ongoing development of Laravel.io →
Requests Eloquent
Last updated 2 years ago.
0

Appends is for serializing the model. You haven't done anything involving serializing ... toArray toJson etc.

0

So what shall I do to add some "virtual fields" to be able to then pass it to view by "compact"?

0

Sign in to participate in this thread!

Eventy

Your banner here too?

visualus visualus Joined 16 Sep 2016

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.