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