diff --git a/database/seeds/SettingsSeeder.php b/database/seeds/SettingsSeeder.php index 5941fbd5..e5e2cd0c 100644 --- a/database/seeds/SettingsSeeder.php +++ b/database/seeds/SettingsSeeder.php @@ -44,6 +44,16 @@ class SettingsSeeder extends Seeder $setting_group->title = 'app.settings.miscellaneous'; $setting_group->save(); } + if(!$setting_group = SettingGroup::find(4)) { + $setting_group = new SettingGroup; + $setting_group->id = 4; + $setting_group->title = 'app.settings.advanced'; + $setting_group->order = 3; + $setting_group->save(); + } else { + $setting_group->title = 'app.settings.advanced'; + $setting_group->save(); + } if($version = Setting::find(1)) { $version->label = 'app.settings.version'; @@ -194,6 +204,38 @@ class SettingsSeeder extends Seeder $setting->system = true; $setting->save(); } + + if(!$setting = Setting::find(10)) { + $setting = new Setting; + $setting->id = 10; + $setting->group_id = 4; + $setting->key = 'custom_css'; + $setting->type = 'textarea'; + $setting->label = 'app.settings.custom_css'; + $setting->value = ''; + $setting->save(); + } else { + $setting->type = 'textarea'; + $setting->group_id = 4; + $setting->label = 'app.settings.custom_css'; + $setting->save(); + } + + if(!$setting = Setting::find(11)) { + $setting = new Setting; + $setting->id = 11; + $setting->group_id = 4; + $setting->key = 'custom_js'; + $setting->type = 'textarea'; + $setting->label = 'app.settings.custom_js'; + $setting->value = ''; + $setting->save(); + } else { + $setting->type = 'textarea'; + $setting->group_id = 4; + $setting->label = 'app.settings.custom_js'; + $setting->save(); + } if(!$home_tag = \App\Item::find(0)) { $home_tag = new \App\Item;