| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- <?php
- namespace App\Models;
- use DateTimeInterface;
- use Illuminate\Database\Eloquent\Model;
- /**
- * 系统配置表
- *
- * @property int $id 系统配置表
- * @property string $key 配置名称
- * @property string $msg 配置说明
- * @property string $value 配置值
- * @property \Illuminate\Support\Carbon|null $created_at
- * @property \Illuminate\Support\Carbon|null $updated_at
- * @method static \Illuminate\Database\Eloquent\Builder|Config newModelQuery()
- * @method static \Illuminate\Database\Eloquent\Builder|Config newQuery()
- * @method static \Illuminate\Database\Eloquent\Builder|Config query()
- * @method static \Illuminate\Database\Eloquent\Builder|Config whereCreatedAt($value)
- * @method static \Illuminate\Database\Eloquent\Builder|Config whereId($value)
- * @method static \Illuminate\Database\Eloquent\Builder|Config whereKey($value)
- * @method static \Illuminate\Database\Eloquent\Builder|Config whereMsg($value)
- * @method static \Illuminate\Database\Eloquent\Builder|Config whereUpdatedAt($value)
- * @method static \Illuminate\Database\Eloquent\Builder|Config whereValue($value)
- * @mixin \Eloquent
- */
- class Config extends Model
- {
- /**
- * The table associated with the model.
- *
- * @var string
- */
- protected $table = 'configs';
- /**
- * The primary key associated with the table.
- *
- * @var string
- */
- protected $primaryKey = 'id';
- /**
- * Indicates if the model should be timestamped.
- *
- * @var bool
- */
- public $timestamps = true;
- /**
- * 不能被批量赋值的属性
- *
- * @var array
- */
- protected $guarded = ['id', 'updated_at', 'created_at'];
- }
|