\Database\SeedersTdSysMenuSeeder

菜单表初始数据。

新增数据:在 ROWS 数组末尾追加(id 用当前 max+1,别重复); 有唯一索引的列不能与现有行冲突。

Summary

Methods
Properties
Constants
run()
No public properties found
TABLE
seedRows()
No protected properties found
N/A
No private methods found
No private properties found
N/A

Constants

TABLE

TABLE = 'td_sys_menu'

Methods

run()

run() : void

seedRows()

seedRows(array<int,array<string,mixed>>  $rows, \Closure|null  $afterInsert = null) : void

全量覆盖导入(单源):truncate + insert + setval 事务样板。

Parameters

array> $rows

目标数据行

\Closure|null $afterInsert

插入后的额外更新(事务内,如公开白名单标记)