Files
chatroom/database/seeders/SysParamSeeder.php
lkddi 50fc804402 feat: 实现挂机修仙、排行榜、大厅重构与全站留言板系统
- (Phase 8) 后台各维度管理与配置
- (Phase 9) 全自动静默挂机修仙升级
- (Phase 9) 四大维度风云排行榜页面
- (Phase 10) 全站留言板与悄悄话私信功能
- 运行 Pint 代码格式化
2026-02-26 13:35:38 +08:00

32 lines
1.1 KiB
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 Database\Seeders;
use App\Models\SysParam;
use Illuminate\Database\Seeder;
class SysParamSeeder extends Seeder
{
/**
* Run the database seeds.
*/
public function run(): void
{
$params = [
['alias' => 'sys_name', 'guidetxt' => '聊天室名称', 'body' => '飘落的流星在线聊天'],
['alias' => 'max_people', 'guidetxt' => '最大人数限制', 'body' => '500'],
['alias' => 'welcome_msg', 'guidetxt' => '欢迎信息', 'body' => '欢迎来到飘落的流星在线聊天室!'],
['alias' => 'sys_notice', 'guidetxt' => '系统公告', 'body' => '系统重构中体验Laravel 12 + Reverb全新架构。'],
['alias' => 'name_length', 'guidetxt' => '用户名最大长度', 'body' => '10'],
['alias' => 'say_length', 'guidetxt' => '发言最大长度', 'body' => '250'],
];
foreach ($params as $param) {
SysParam::updateOrCreate(
['alias' => $param['alias']],
$param
);
}
}
}