Commit 0279e60
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 daca387 commit 0279e60
1 file changed
+9
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
509 | 509 | | |
510 | 510 | | |
511 | 511 | | |
512 | | - | |
| 512 | + | |
513 | 513 | | |
514 | 514 | | |
515 | 515 | | |
516 | 516 | | |
517 | 517 | | |
518 | 518 | | |
519 | 519 | | |
| 520 | + | |
520 | 521 | | |
521 | 522 | | |
522 | 523 | | |
523 | 524 | | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
524 | 532 | | |
525 | 533 | | |
526 | 534 | | |
| |||
0 commit comments