Skip to content

Commit 3702622

Browse files
authored
Merge pull request laravel#4930 from epalmans/master
Attribute casting for 'email_verified_at' on User model stub (with explanation)
2 parents ed60178 + 2f37ba3 commit 3702622

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

app/User.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,13 @@ class User extends Authenticatable
2727
protected $hidden = [
2828
'password', 'remember_token',
2929
];
30+
31+
/**
32+
* The attributes that should be cast to native types.
33+
*
34+
* @var array
35+
*/
36+
protected $casts = [
37+
'email_verified_at' => 'datetime',
38+
];
3039
}

0 commit comments

Comments
 (0)