We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5c0152d + 4e122fe commit 6f5ce18Copy full SHA for 6f5ce18
src/App/Models/TwoStepAuth.php
@@ -36,18 +36,6 @@ class TwoStepAuth extends Model
36
'id',
37
];
38
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
-
51
/**
52
* Fillable fields for a Profile.
53
*
@@ -63,10 +51,12 @@ class TwoStepAuth extends Model
63
64
65
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',
70
60
71
61
72
62
0 commit comments