['type' => 'string_60', 'title' => '名称'], 'status' => ['type' => 'string_60', 'title' => '状态', 'remark' => '1 启用'], 'remark' => ['type' => 'string', 'title' => '备注'], 'privileges' => ['type' => 'object', 'title' => '权限', 'is_null' => 1,], ]; } public function init() { Eav::table($this->schema)->insert([ 'name' => '超级管理员', 'remark' => '超级管理员,拥有所有权限', 'status' => 1, 'privileges' => [], 'mid' => Str::random(12), 'created_at' => time(), 'updated_at' => time() ]); } /** * Run the database seeds. * * @return void */ public function run() { $this->schema = 'user_role'; $this->title = '用户角色表'; // $this->category_type = 2; $this->start(); } }