After get() chain the toJson() method. You'll get the json string.
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.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community