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