Banner.php 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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. * App\Models\Banner
  8. *
  9. * @property int $id
  10. * @property string $image banner图片
  11. * @property string|null $link banner跳转链接
  12. * @property int $sort 排序1-100:正序
  13. * @property int $show 是否显示 0:不显示;1:显示
  14. * @property \Illuminate\Support\Carbon|null $created_at
  15. * @property \Illuminate\Support\Carbon|null $updated_at
  16. * @property string $image_en banner英文图片
  17. * @method static \Illuminate\Database\Eloquent\Builder|Banner newModelQuery()
  18. * @method static \Illuminate\Database\Eloquent\Builder|Banner newQuery()
  19. * @method static \Illuminate\Database\Eloquent\Builder|Banner query()
  20. * @method static \Illuminate\Database\Eloquent\Builder|Banner whereCreatedAt($value)
  21. * @method static \Illuminate\Database\Eloquent\Builder|Banner whereId($value)
  22. * @method static \Illuminate\Database\Eloquent\Builder|Banner whereImage($value)
  23. * @method static \Illuminate\Database\Eloquent\Builder|Banner whereImageEn($value)
  24. * @method static \Illuminate\Database\Eloquent\Builder|Banner whereLink($value)
  25. * @method static \Illuminate\Database\Eloquent\Builder|Banner whereShow($value)
  26. * @method static \Illuminate\Database\Eloquent\Builder|Banner whereSort($value)
  27. * @method static \Illuminate\Database\Eloquent\Builder|Banner whereUpdatedAt($value)
  28. * @mixin \Eloquent
  29. */
  30. class Banner extends Model implements Transformable
  31. {
  32. use TransformableTrait;
  33. /**
  34. * The attributes that are mass assignable.
  35. *
  36. * @var array
  37. */
  38. protected $guarded = ['id', 'updated_at', 'created_at'];
  39. }