1 | <?php |
||
5 | class User implements Authenticatable |
||
|
|||
6 | { |
||
7 | |||
8 | /** |
||
9 | * Get the name of the unique identifier for the user. |
||
10 | * |
||
11 | * @return string |
||
12 | */ |
||
13 | public function getAuthIdentifierName() |
||
17 | |||
18 | /** |
||
19 | * Get the unique identifier for the user. |
||
20 | * |
||
21 | * @return mixed |
||
22 | */ |
||
23 | public function getAuthIdentifier() |
||
24 | { |
||
25 | return 5; |
||
26 | } |
||
27 | |||
28 | /** |
||
29 | * Get the password for the user. |
||
30 | * |
||
31 | * @return string |
||
32 | */ |
||
33 | public function getAuthPassword() |
||
34 | { |
||
35 | return 'somepassword'; |
||
36 | } |
||
37 | |||
38 | /** |
||
39 | * Get the token value for the "remember me" session. |
||
40 | * |
||
41 | * @return string |
||
42 | */ |
||
43 | public function getRememberToken() |
||
44 | { |
||
45 | return 'asjfasjfiajfi'; |
||
46 | } |
||
47 | |||
48 | /** |
||
49 | * Set the token value for the "remember me" session. |
||
50 | * |
||
51 | * @param string $value |
||
52 | * @return void |
||
53 | */ |
||
54 | public function setRememberToken($value) |
||
55 | { |
||
56 | // TODO: Implement setRememberToken() method. |
||
57 | } |
||
58 | |||
59 | /** |
||
60 | * Get the column name for the "remember me" token. |
||
61 | * |
||
62 | * @return string |
||
63 | */ |
||
64 | public function getRememberTokenName() |
||
65 | { |
||
66 | return 'remember_token'; |
||
67 | } |
||
68 | |||
69 | } |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.