'未提交审核', 2 => '正在审核', 3 => '审核失败', 4 => '审核通过', 5 => '已发布']); foreach($values as $key => $value) { \App\Models\BaseDictionaryOptionModel::firstOrCreate([ 'dictionary_table_code' => 'auth', 'dictionary_code' => 'status', 'key' => $key, 'value' => $key, 'name' => $value ]); } $values = collect([1 => '类型1', 2 => '类型2', 3 => '类型3', 4 => '类型4']); foreach($values as $key => $value) { \App\Models\BaseDictionaryOptionModel::firstOrCreate([ 'dictionary_table_code' => 'template', 'dictionary_code' => 'type', 'key' => $key, 'value' => $key, 'name' => $value ]); } } }