Banner.php 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <?php
  2. namespace App\Models;
  3. use Illuminate\Database\Eloquent\Model;
  4. use Prettus\Repository\Contracts\Transformable;
  5. use Prettus\Repository\Traits\TransformableTrait;
  6. /**
  7. * Class Banner.
  8. *
  9. * @package namespace App\Models;
  10. * @property int $id
  11. * @property string $image banner图片
  12. * @property string|null $link banner跳转链接
  13. * @property int $sort 排序1-100:正序
  14. * @property int $show 是否显示 0:不显示;1:显示
  15. * @property int $type 跳转类型:0:不跳转,1:商品,2:分类,3:秒杀
  16. * @property int $to_id 关联ID
  17. * @property \Illuminate\Support\Carbon|null $created_at
  18. * @property \Illuminate\Support\Carbon|null $updated_at
  19. * @property string|null $title 标题
  20. * @method static \Illuminate\Database\Eloquent\Builder|Banner newModelQuery()
  21. * @method static \Illuminate\Database\Eloquent\Builder|Banner newQuery()
  22. * @method static \Illuminate\Database\Eloquent\Builder|Banner query()
  23. * @method static \Illuminate\Database\Eloquent\Builder|Banner whereCreatedAt($value)
  24. * @method static \Illuminate\Database\Eloquent\Builder|Banner whereId($value)
  25. * @method static \Illuminate\Database\Eloquent\Builder|Banner whereImage($value)
  26. * @method static \Illuminate\Database\Eloquent\Builder|Banner whereLink($value)
  27. * @method static \Illuminate\Database\Eloquent\Builder|Banner whereShow($value)
  28. * @method static \Illuminate\Database\Eloquent\Builder|Banner whereSort($value)
  29. * @method static \Illuminate\Database\Eloquent\Builder|Banner whereTitle($value)
  30. * @method static \Illuminate\Database\Eloquent\Builder|Banner whereToId($value)
  31. * @method static \Illuminate\Database\Eloquent\Builder|Banner whereType($value)
  32. * @method static \Illuminate\Database\Eloquent\Builder|Banner whereUpdatedAt($value)
  33. * @mixin \Eloquent
  34. * @property string $image_en banner英文图片
  35. * @method static \Illuminate\Database\Eloquent\Builder|Banner whereImageEn($value)
  36. */
  37. class Banner extends Model implements Transformable
  38. {
  39. use TransformableTrait;
  40. /**
  41. * The attributes that are mass assignable.
  42. *
  43. * @var array
  44. */
  45. protected $guarded = ['id', 'updated_at', 'created_at'];
  46. }