AdminUserModel.php 847 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <?php
  2. /**
  3. *------------------------------------------------------
  4. * AdminUserModel.php
  5. *------------------------------------------------------
  6. *
  7. * @author m@9026.com
  8. * @date 2017/03/21 10:15
  9. * @version V1.0
  10. *
  11. */
  12. namespace App\Models;
  13. use Illuminate\Foundation\Auth\User as Authenticatable;
  14. class AdminUserModel extends Authenticatable
  15. {
  16. /**
  17. * 数据表名
  18. */
  19. protected $table = "admin_users";
  20. /**
  21. * 主键
  22. */
  23. protected $primaryKey = "id";
  24. /**
  25. * 可以被集体附值的表的字段
  26. */
  27. protected $fillable = [
  28. 'name',
  29. 'real_name',
  30. 'password',
  31. 'store_id',
  32. 'email',
  33. 'mobile',
  34. 'avatar',
  35. 'type',
  36. 'last_login_time',
  37. 'status',
  38. 'is_root',
  39. 'model',
  40. 'admin_role_id'
  41. ];
  42. }