| 1 | <?php |
||
| 8 | class User extends Eloquent implements UserInterface, RemindableInterface { |
||
|
|
|||
| 9 | |||
| 10 | use UserTrait, RemindableTrait; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * The database table used by the model. |
||
| 14 | * |
||
| 15 | * @var string |
||
| 16 | */ |
||
| 17 | protected $table = 'users'; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * The attributes excluded from the model's JSON form. |
||
| 21 | * |
||
| 22 | * @var array |
||
| 23 | */ |
||
| 24 | protected $hidden = array('password', 'remember_token'); |
||
| 25 | |||
| 26 | } |
||
| 27 |
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.