mirror of
https://github.com/laravel/laravel.git
synced 2025-02-20 11:53:14 +08:00
Attribute casting for 'email_verified_at' on User model stub
This commit is contained in:
parent
098cf4600b
commit
2f37ba38fa
@ -29,11 +29,11 @@ class User extends Authenticatable
|
||||
];
|
||||
|
||||
/**
|
||||
* The attributes that should be mutated to dates.
|
||||
* The attributes that should be cast to native types.
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
protected $dates = [
|
||||
'email_verified_at',
|
||||
protected $casts = [
|
||||
'email_verified_at' => 'datetime',
|
||||
];
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user