Skip to content

Commit 2f37ba3

Browse files
committed
Attribute casting for 'email_verified_at' on User model stub
1 parent 098cf46 commit 2f37ba3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/User.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@ class User extends Authenticatable
2929
];
3030

3131
/**
32-
* The attributes that should be mutated to dates.
32+
* The attributes that should be cast to native types.
3333
*
3434
* @var array
3535
*/
36-
protected $dates = [
37-
'email_verified_at',
36+
protected $casts = [
37+
'email_verified_at' => 'datetime',
3838
];
3939
}

0 commit comments

Comments
 (0)