Auth.php 996 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <?php
  2. namespace App\Models;
  3. use Illuminate\Auth\Authenticatable;
  4. use Laravel\Lumen\Auth\Authorizable;
  5. use Illuminate\Database\Eloquent\Model;
  6. use Illuminate\Contracts\Auth\Authenticatable as AuthenticatableContract;
  7. use Illuminate\Contracts\Auth\Access\Authorizable as AuthorizableContract;
  8. use Tymon\JWTAuth\Contracts\JWTSubject;
  9. class Auth extends Model
  10. {
  11. protected $table = 'auth';
  12. /**
  13. * The attributes that are mass assignable.
  14. *
  15. * @var array
  16. */
  17. protected $guarded = [];
  18. /**
  19. * The attributes excluded from the model's JSON form.
  20. *
  21. * @var array
  22. */
  23. protected $hidden = [
  24. 'password',
  25. ];
  26. const TYPE_WEAPP = 0;
  27. public static $typeMaps = [
  28. self::TYPE_WEAPP => '微信小程序授权登录'
  29. ];
  30. // 验证状态
  31. const VERIFIED_OK = 1;
  32. const VERIFIED_NO = 0;
  33. public static $verifiedMaps = [
  34. self::VERIFIED_OK => '已验证',
  35. self::VERIFIED_NO => '未验证'
  36. ];
  37. }