Browse Source

Date mutator for 'email_verified_at' attribute on User model stub

Eddie Palmans 6 years ago
parent
commit
098cf4600b
1 changed files with 9 additions and 0 deletions
  1. 9 0
      app/User.php

+ 9 - 0
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',
+    ];
 }