Skip to content

Commit 6f5ce18

Browse files
authored
Merge pull request #22 from royduin/patch-1
Laravel 10 fix
2 parents 5c0152d + 4e122fe commit 6f5ce18

File tree

1 file changed

+6
-16
lines changed

1 file changed

+6
-16
lines changed

src/App/Models/TwoStepAuth.php

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -36,18 +36,6 @@ class TwoStepAuth extends Model
3636
'id',
3737
];
3838

39-
/**
40-
* The attributes that should be mutated to dates.
41-
*
42-
* @var array
43-
*/
44-
protected $dates = [
45-
'created_at',
46-
'updated_at',
47-
'requestDate',
48-
'authDate',
49-
];
50-
5139
/**
5240
* Fillable fields for a Profile.
5341
*
@@ -63,10 +51,12 @@ class TwoStepAuth extends Model
6351
];
6452

6553
protected $casts = [
66-
'userId' => 'integer',
67-
'authCode' => 'string',
68-
'authCount' => 'integer',
69-
'authStatus' => 'boolean',
54+
'userId' => 'integer',
55+
'authCode' => 'string',
56+
'authCount' => 'integer',
57+
'authStatus' => 'boolean',
58+
'requestDate' => 'datetime',
59+
'authDate' => 'datetime',
7060
];
7161

7262
/**

0 commit comments

Comments
 (0)