Date mutator for 'email_verified_at' attribute on User model stub

This commit is contained in:
Eddie Palmans 2019-02-04 13:06:44 +01:00
parent 6efb843e7d
commit 098cf4600b
1 changed files with 9 additions and 0 deletions

View File

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