Commit 703390e
Pantea Marius-ciclistu
POC for laravel/framework#31778 cover this case
$model = User::query()->firstOrFail();
$carbon = $model->date_time_carbon_casted;
$carbon->addDay();
echo $model->col_with_get_mutator_that_depends_on_date_time_carbon_casted;
// would print 'value date time' without the added day before this commit1 parent e8ce6e6 commit 703390e
1 file changed
+13
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
269 | 269 | | |
270 | 270 | | |
271 | 271 | | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
272 | 277 | | |
273 | 278 | | |
274 | 279 | | |
275 | 280 | | |
276 | 281 | | |
| 282 | + | |
277 | 283 | | |
278 | 284 | | |
279 | 285 | | |
280 | 286 | | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
281 | 294 | | |
282 | 295 | | |
283 | 296 | | |
| |||
0 commit comments