User.php 911 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. namespace App;
  3. use Illuminate\Auth\Authenticatable;
  4. use Illuminate\Database\Eloquent\Model;
  5. use Illuminate\Auth\Passwords\CanResetPassword;
  6. use Illuminate\Foundation\Auth\Access\Authorizable;
  7. use Illuminate\Contracts\Auth\Authenticatable as AuthenticatableContract;
  8. use Illuminate\Contracts\Auth\Access\Authorizable as AuthorizableContract;
  9. use Illuminate\Contracts\Auth\CanResetPassword as CanResetPasswordContract;
  10. class User extends Model implements
  11. AuthenticatableContract,
  12. AuthorizableContract,
  13. CanResetPasswordContract
  14. {
  15. use Authenticatable, Authorizable, CanResetPassword;
  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. }