From 070e8102af017c90f119165ee40be12744383652 Mon Sep 17 00:00:00 2001 From: mgralikowski Date: Fri, 4 Aug 2023 08:58:51 +0200 Subject: [PATCH] Update upgrade.md Add info about breaking change. --- upgrade.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/upgrade.md b/upgrade.md index 6db4bfc83e7..d7a94983ed4 100644 --- a/upgrade.md +++ b/upgrade.md @@ -191,6 +191,8 @@ protected $casts = [ ]; ``` +In the previous version, the Eloquent `getDates()` method was returning a list of attributes including timestamps and all attributes defined in `$dates` property. After moving dates to the `$casts` you should expect only two timestamps or an empty array. + #### Relation `getBaseQuery` Method