$city = City::with('station')->where('name',$town)->first();
$townID = 1;
$townComments = TownComment::where('town_id',$townID)->get();
$city->town_comments = $townComments;
Run Code Online (Sandbox Code Playgroud)
当我这样做时,结果town_comments只显示boolean了timestamps,incrementing和exists.
我在这做错了什么?
这是它的样子:
{
id: "1",
name: "tokyo",
similar_stations: {
timestamps: false,
incrementing: true,
exists: true
}
}
Run Code Online (Sandbox Code Playgroud) $env = $app->detectEnvironment(array(
'local' => array('*.local'),
));
Run Code Online (Sandbox Code Playgroud)
原始配置文件可以在我的本地环境中使用,例如database.php,cache.php等等.但我的自定义配置不会在我的本地环境中使用.
有没有办法在其上添加我的自定义配置?