Support the ongoing development of Laravel.io →
Requests Eloquent
Last updated 1 year ago.
0

After get() chain the toJson() method. You'll get the json string.

Last updated 1 year ago.
0

If you'd post your query it would be very helpful but as an assumption, you might want to use Eloquent's Eager Loading method to load in relationships and have them on the model accessible as you mentioned.

Last updated 1 year ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

montes2012 montes2012 Joined 11 Feb 2014

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.