1
0
mirror of https://github.com/flarum/core.git synced 2025-10-24 21:26:11 +02:00

Move theme config to database

This commit is contained in:
Toby Zerner
2015-05-31 11:18:19 +09:30
parent 8e7634e36d
commit a1da95962d
5 changed files with 24 additions and 21 deletions

View File

@@ -14,12 +14,16 @@ class ConfigTableSeeder extends Seeder
public function run()
{
$config = [
'api_url' => 'http://flarum.dev/api',
'base_url' => 'http://flarum.dev',
'forum_title' => 'Flarum Demo Forum',
'welcome_message' => 'Flarum is now at a point where you can have basic conversations, so here is a little demo for you to break.',
'welcome_title' => 'Welcome to Flarum Demo Forum',
'extensions_enabled' => '[]',
'api_url' => 'http://flarum.dev/api',
'base_url' => 'http://flarum.dev',
'forum_title' => 'Flarum Demo Forum',
'welcome_message' => 'Flarum is now at a point where you can have basic conversations, so here is a little demo for you to break.',
'welcome_title' => 'Welcome to Flarum Demo Forum',
'extensions_enabled' => '[]',
'theme_primary_color' => '#536F90',
'theme_secondary_color' => '#536F90',
'theme_dark_mode' => false,
'theme_colored_header' => false,
];
DB::table('config')->insert(array_map(function ($key, $value) {