$city = City::with('station')->where('name',$town)->first(); $townID = 1; $townComments = TownComment::where('town_id',$townID)->get(); $city->town_comments = $townComments;
When I do this, the result for town_comments shows only boolean for timestamps , incrementing and exists .
What am I doing wrong here?
this is how it looks:
{ id: "1", name: "tokyo", similar_stations: { timestamps: false, incrementing: true, exists: true } }
source share