$city = City::with('station')->where('name',$town)->first();
$townID = 1;
$townComments = TownComment::where('town_id',$townID)->get();
$city->town_comments = $townComments;
के अंदर निर्धारित किये जाने से जब मैं ऐसा करते हैं, town_comments
के लिए परिणाम केवल timestamps
, incrementing
और exists
के लिए boolean
को दर्शाता है।Laravel 4 - सुवक्ता परिणाम केवल शो (टाइम स्टांप, incrementing, मौजूद है) जब किसी अन्य वस्तु
मैं यहाँ क्या गलत कर रहा हूं?
यहाँकि यह कैसे की तरह लग रहा है:
{
id: "1",
name: "tokyo",
similar_stations: {
timestamps: false,
incrementing: true,
exists: true
}
}
, यदि आप तो पेशेवर हैं क्यों आप अपने कारण downvoting के लिए नहीं कहता -_- – Ironwind