1
0
mirror of https://github.com/flarum/core.git synced 2025-10-27 13:40:24 +01:00
Files
php-flarum/src/Core/Seeders/ConfigTableSeeder.php
Franz Liedke 1ab1631849 Fix the config table seeder
It should include the "extensions_enabled" key which is read
when initializing all extensions.
2015-05-19 01:53:37 +02:00

30 lines
859 B
PHP

<?php namespace Flarum\Core\Seeders;
use Illuminate\Database\Seeder;
use DB;
class ConfigTableSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
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' => '[]',
];
DB::table('config')->insert(array_map(function ($key, $value) {
return compact('key', 'value');
}, array_keys($config), $config));
}
}