From 098cf4600b98fb16ac73f0b4d5768325b6bdc56a Mon Sep 17 00:00:00 2001 From: Eddie Palmans Date: Mon, 4 Feb 2019 13:06:44 +0100 Subject: [PATCH] Date mutator for 'email_verified_at' attribute on User model stub --- app/User.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/app/User.php b/app/User.php index fbc0e589..54854c16 100644 --- a/app/User.php +++ b/app/User.php @@ -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', + ]; }