$city = City::with('station')->where('name',$town)->first();
$townID = 1;
$townComments = TownComment::where('town_id',$townID)->get();
$city->town_comments = $townComments;
当我这样做时,仅town_comments
显示boolean
,和的结果。timestamps
incrementing
exists
我在这里做错了什么?
这是它的样子:
{
id: "1",
name: "tokyo",
similar_stations: {
timestamps: false,
incrementing: true,
exists: true
}
}