feat: 更新 .env.example 文件,新增彩票业务配置与 Redis、邮件、队列等环境变量,优化开发环境设置
This commit is contained in:
25
app/Models/LotterySetting.php
Normal file
25
app/Models/LotterySetting.php
Normal 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',
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user