Browse Source

Complete fix for #17

Bubka 4 years ago
parent
commit
b80f7b6b3b
1 changed files with 9 additions and 0 deletions
  1. 9 0
      app/User.php

+ 9 - 0
app/User.php

@@ -49,4 +49,13 @@ class User extends Authenticatable
     {
         $this->notify(new ResetPassword($token));
     }
+
+    /**
+     * Get Email attribute
+     * @param string $value
+     */
+    public function getEmailAttribute($value)
+    {
+        return strtolower($value);
+    }
 }