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

38
app/Models/AuditLog.php Normal file
View File

@@ -0,0 +1,38 @@
<?php
namespace App\Models;
use App\Services\AuditLogger;
use Illuminate\Database\Eloquent\Model;
/** 运维/后台动作留痕表 audit_logs写入请走 {@see AuditLogger})。 */
class AuditLog extends Model
{
public const UPDATED_AT = null;
protected $table = 'audit_logs';
/** @var list<string> */
protected $fillable = [
'operator_type',
'operator_id',
'module_code',
'action_code',
'target_type',
'target_id',
'before_json',
'after_json',
'ip',
'user_agent',
];
protected function casts(): array
{
return [
'operator_id' => 'integer',
'before_json' => 'json',
'after_json' => 'json',
'created_at' => 'datetime',
];
}
}