User.php 855 B

123456789101112131415161718192021222324252627282930313233
  1. <?php namespace App;
  2. use Illuminate\Auth\Authenticatable;
  3. use Illuminate\Database\Eloquent\Model;
  4. use Illuminate\Auth\Passwords\CanResetPassword;
  5. use Illuminate\Contracts\Auth\Authenticatable as AuthenticatableContract;
  6. use Illuminate\Contracts\Auth\CanResetPassword as CanResetPasswordContract;
  7. class User extends Model implements AuthenticatableContract, CanResetPasswordContract
  8. {
  9. use Authenticatable, CanResetPassword;
  10. /**
  11. * The database table used by the model.
  12. *
  13. * @var string
  14. */
  15. protected $table = 'users';
  16. /**
  17. * The attributes that are mass assignable.
  18. *
  19. * @var array
  20. */
  21. protected $fillable = ['name', 'email', 'password'];
  22. /**
  23. * The attributes excluded from the model's JSON form.
  24. *
  25. * @var array
  26. */
  27. protected $hidden = ['password', 'remember_token'];
  28. }