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

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',
];
} }