From 2f37ba38fa8f7cf6a1cda070984459405e90a37a Mon Sep 17 00:00:00 2001 From: Eddie Palmans Date: Mon, 4 Feb 2019 14:28:05 +0100 Subject: [PATCH] Attribute casting for 'email_verified_at' on User model stub --- app/User.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/User.php b/app/User.php index 54854c16..faa03c3b 100644 --- a/app/User.php +++ b/app/User.php @@ -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', ]; }