novel-view
This commit is contained in:
@@ -43,11 +43,11 @@ class TemplateSeeder
|
||||
|
||||
];
|
||||
|
||||
foreach ($arrData as $arrSystemConfig) {
|
||||
$TemplatesModel = TemplatesModel::where('t_id', $arrSystemConfig['t_id'])->find();
|
||||
foreach ($arrData as $arrTemplate) {
|
||||
$TemplatesModel = TemplatesModel::where('t_id', $arrTemplate['t_id'])->find();
|
||||
|
||||
if (empty($TemplatesModel)) {
|
||||
TemplatesModel::insert($arrSystemConfig);
|
||||
TemplatesModel::insert($arrTemplate);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user