12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- <?php
- namespace App\Models;
- use Illuminate\Database\Eloquent\Model;
- use Prettus\Repository\Contracts\Transformable;
- use Prettus\Repository\Traits\TransformableTrait;
- /**
- * App\Models\Banner
- *
- * @property int $id
- * @property string $image banner图片
- * @property string|null $link banner跳转链接
- * @property int $sort 排序1-100:正序
- * @property int $show 是否显示 0:不显示;1:显示
- * @property \Illuminate\Support\Carbon|null $created_at
- * @property \Illuminate\Support\Carbon|null $updated_at
- * @property string $image_en banner英文图片
- * @method static \Illuminate\Database\Eloquent\Builder|Banner newModelQuery()
- * @method static \Illuminate\Database\Eloquent\Builder|Banner newQuery()
- * @method static \Illuminate\Database\Eloquent\Builder|Banner query()
- * @method static \Illuminate\Database\Eloquent\Builder|Banner whereCreatedAt($value)
- * @method static \Illuminate\Database\Eloquent\Builder|Banner whereId($value)
- * @method static \Illuminate\Database\Eloquent\Builder|Banner whereImage($value)
- * @method static \Illuminate\Database\Eloquent\Builder|Banner whereImageEn($value)
- * @method static \Illuminate\Database\Eloquent\Builder|Banner whereLink($value)
- * @method static \Illuminate\Database\Eloquent\Builder|Banner whereShow($value)
- * @method static \Illuminate\Database\Eloquent\Builder|Banner whereSort($value)
- * @method static \Illuminate\Database\Eloquent\Builder|Banner whereUpdatedAt($value)
- * @mixin \Eloquent
- */
- class Banner extends Model implements Transformable
- {
- use TransformableTrait;
- /**
- * The attributes that are mass assignable.
- *
- * @var array
- */
- protected $guarded = ['id', 'updated_at', 'created_at'];
- }
|