Merge pull request #4930 from epalmans/master

Attribute casting for 'email_verified_at' on User model stub (with explanation)
This commit is contained in:
Taylor Otwell 2019-02-04 07:31:43 -06:00 committed by GitHub
commit 3702622461
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 0 deletions

View File

@ -27,4 +27,13 @@ class User extends Authenticatable
protected $hidden = [ protected $hidden = [
'password', 'remember_token', 'password', 'remember_token',
]; ];
/**
* The attributes that should be cast to native types.
*
* @var array
*/
protected $casts = [
'email_verified_at' => 'datetime',
];
} }