feat: 更新 .env.example 文件,新增彩票业务配置与 Redis、邮件、队列等环境变量,优化开发环境设置

This commit is contained in:
2026-05-08 17:26:01 +08:00
parent 8cce1778b9
commit 85e57782cc
12 changed files with 663 additions and 54 deletions

View File

@@ -0,0 +1,25 @@
<?php
namespace App\Models;
use App\Services\LotterySettings;
use Illuminate\Database\Eloquent\Model;
/** 运行期 KV 配置行,对应表 lottery_settings读业务请优先用 {@see LotterySettings})。 */
class LotterySetting extends Model
{
protected $fillable = [
'setting_key',
'value_json',
'group_name',
'description_zh',
];
protected function casts(): array
{
return [
/** 支持 JSON 布尔/数字/字符串/对象任意顶层形态 */
'value_json' => 'json',
];
}
}