File tree Expand file tree Collapse file tree 1 file changed +2
-17
lines changed
src/Illuminate/Database/Eloquent/Concerns Expand file tree Collapse file tree 1 file changed +2
-17
lines changed Original file line number Diff line number Diff line change @@ -105,15 +105,6 @@ trait HasAttributes
105
105
'timestamp ' ,
106
106
];
107
107
108
- /**
109
- * The attributes that should be mutated to dates.
110
- *
111
- * @deprecated Use the "casts" property
112
- *
113
- * @var array
114
- */
115
- protected $ dates = [];
116
-
117
108
/**
118
109
* The storage format of the model's date columns.
119
110
*
@@ -1366,16 +1357,10 @@ protected function serializeDate(DateTimeInterface $date)
1366
1357
*/
1367
1358
public function getDates ()
1368
1359
{
1369
- if (! $ this ->usesTimestamps ()) {
1370
- return $ this ->dates ;
1371
- }
1372
-
1373
- $ defaults = [
1360
+ return $ this ->usesTimestamps () ? [
1374
1361
$ this ->getCreatedAtColumn (),
1375
1362
$ this ->getUpdatedAtColumn (),
1376
- ];
1377
-
1378
- return array_unique (array_merge ($ this ->dates , $ defaults ));
1363
+ ] : [];
1379
1364
}
1380
1365
1381
1366
/**
You can’t perform that action at this time.
0 commit comments