1 | <?php |
||
29 | class User extends Eloquent implements UserInterface, RemindableInterface { |
||
|
|||
30 | |||
31 | use UserTrait, RemindableTrait; |
||
32 | |||
33 | /** |
||
34 | * The database table used by the model. |
||
35 | * |
||
36 | * @var string |
||
37 | */ |
||
38 | protected $table = 'users'; |
||
39 | |||
40 | /** |
||
41 | * The attributes excluded from the model's JSON form. |
||
42 | * |
||
43 | * @var array |
||
44 | */ |
||
45 | protected $hidden = ['password', 'remember_token']; |
||
46 | |||
47 | /** |
||
48 | * Get auth password |
||
49 | * |
||
50 | * Overwritten for mozilla persona usage. |
||
51 | */ |
||
52 | public function getAuthPassword() { |
||
53 | return Hash::make('moz:persona'); |
||
54 | } |
||
55 | |||
56 | /** |
||
57 | * Get user's preferred name (username or displayname) |
||
58 | */ |
||
59 | 5 | public function getNameAttribute() { |
|
66 | } |
||
67 |
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.