AlbumNavModel.php 890 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <?php
  2. namespace App\Models;
  3. use App\Models\BaseModel;
  4. use Illuminate\Database\Eloquent\SoftDeletes;
  5. /**
  6. * @description 导航栏设置
  7. * @author system;
  8. * @version 1.0
  9. * @date 2018-05-16 17:42:12
  10. *
  11. */
  12. class AlbumNavModel extends BaseModel
  13. {
  14. use SoftDeletes;
  15. protected $dates = ['delete_at'];
  16. /**
  17. * 数据表名
  18. *
  19. * @var string
  20. *
  21. */
  22. protected $table = 'album_nav';
  23. /**
  24. * 主键
  25. */
  26. protected $primaryKey = 'id';
  27. //分页
  28. protected $perPage = PAGE_NUMS;
  29. /**
  30. * 可以被集体附值的表的字段
  31. *
  32. * @var string
  33. */
  34. protected $fillable = [
  35. 'store_id',
  36. 'name',
  37. 'url',
  38. 'lat',
  39. 'lon',
  40. 'open_type',
  41. 'pic_url',
  42. 'pic_url_active',
  43. 'sort',
  44. 'mobile',
  45. 'address',
  46. 'app_id',
  47. 'state'
  48. ];
  49. }