BannerItem.php 575 B

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. namespace app\common\model;
  3. class BannerItem extends BaseModel
  4. {
  5. /**
  6. * @var string
  7. */
  8. protected $name = 'banner_item';
  9. /**
  10. * @var array
  11. */
  12. protected $auto = [];
  13. /**
  14. * @var array
  15. */
  16. protected $insert = ['created_at','updated_at'];
  17. /**
  18. * @var array
  19. */
  20. protected $update = ['updated_at'];
  21. /**
  22. * @var array
  23. */
  24. protected $hidden = ['deleted_at','updated_at'];
  25. public function getOpenurlAttr($value){
  26. return ltrim($value);
  27. }
  28. }