Files
lotteryLaravel/app/Models/LotterySetting.php

26 lines
585 B
PHP
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?php
namespace App\Models;
use App\Services\LotterySettings;
use Illuminate\Database\Eloquent\Model;
/** 运行期 KV 配置行,对应表 lottery_settings读业务请优先用 {@see LotterySettings})。 */
final class LotterySetting extends Model
{
protected $fillable = [
'setting_key',
'value_json',
'group_name',
'description_zh',
];
protected function casts(): array
{
return [
/** 支持 JSON 布尔/数字/字符串/对象任意顶层形态 */
'value_json' => 'json',
];
}
}