We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 98b3bc6 commit 44d580fCopy full SHA for 44d580f
1 file changed
app/models/User.php
@@ -1,8 +1,8 @@
1
<?php
2
3
-use Illuminate\Auth\EloquentUser;
+use Illuminate\Auth\UserInterface;
4
5
-class User extends EloquentUser {
+class User implements UserInterface {
6
7
/**
8
* The database table used by the model.
@@ -18,4 +18,24 @@ class User extends EloquentUser {
18
*/
19
protected $hidden = array('password');
20
21
+ /**
22
+ * Get the unique identifier for the user.
23
+ *
24
+ * @return mixed
25
+ */
26
+ public function getAuthIdentifier()
27
+ {
28
+ return $this->getKey();
29
+ }
30
+
31
32
+ * Get the password for the user.
33
34
+ * @return string
35
36
+ public function getAuthPassword()
37
38
+ return $this->password;
39
40
41
}
0 commit comments