我希望能够编辑$ dates变量中的日期(在生成它们的函数中更改它们不是一个选项)。类似于$ dates-> open-> date =“更改为示例日期”
$dates = $this->FrameCalc(0);
dd($dates);
转储:
App\Frame {#1327
-open: Illuminate\Support\Carbon @1525996800 {#1324
date: 2018-05-11 00:00:00.0 UTC (+00:00)
}
-close: Illuminate\Support\Carbon @1527724799 {#1339
date: 2018-05-30 23:59:59.0 UTC (+00:00)
}
}
谢谢,