Skip to content

Commit 0be002b

Browse files
authored
refactor: remove deprecated $dates property
1 parent 9e97a78 commit 0be002b

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

src/WinkPost.php

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -64,15 +64,6 @@ class WinkPost extends AbstractWinkModel
6464
*/
6565
public $incrementing = false;
6666

67-
/**
68-
* The attributes that should be mutated to dates.
69-
*
70-
* @var array
71-
*/
72-
public $dates = [
73-
'publish_date',
74-
];
75-
7667
/**
7768
* The attributes that should be casted.
7869
*
@@ -82,6 +73,7 @@ class WinkPost extends AbstractWinkModel
8273
'meta' => 'array',
8374
'published' => 'boolean',
8475
'markdown' => 'boolean',
76+
'publish_date' => 'datetime',
8577
];
8678

8779
/**

0 commit comments

Comments
 (0)