Skip to content

Commit c276383

Browse files
authored
Merge pull request #378 from ibrunotome/patch-1
Real Laravel 10 support
2 parents 0f71fc5 + 0be002b commit c276383

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
],
1212
"require": {
1313
"php": "^7.3||^7.4||^8.0",
14-
"laravel/framework": "^7.0||^8.0||^9.0"
14+
"laravel/framework": "^7.0||^8.0||^9.0|^10.0"
1515
},
1616
"autoload": {
1717
"psr-4": {

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)