Cachet/database/seeds/SettingsTableSeeder.php

72 lines
1.7 KiB
PHP
Raw Normal View History

<?php
/*
* This file is part of Cachet.
*
2015-07-06 17:37:01 +01:00
* (c) Alt Three Services Limited
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
use CachetHQ\Cachet\Models\Setting;
2015-01-01 15:43:05 +00:00
use Illuminate\Database\Seeder;
2014-12-20 21:20:17 +00:00
class SettingsTableSeeder extends Seeder
{
/**
2015-01-01 16:00:19 +00:00
* Run the database seeding.
2014-12-20 21:20:17 +00:00
*/
public function run()
{
$defaultSettings = [
[
2015-04-18 16:55:51 +01:00
'name' => 'app_name',
'value' => 'Cachet Demo',
2014-12-20 21:20:17 +00:00
],
[
2015-04-18 16:55:51 +01:00
'name' => 'app_domain',
'value' => 'https://demo.cachethq.io',
],
[
2015-04-18 16:55:51 +01:00
'name' => 'show_support',
'value' => '1',
2015-01-16 10:36:35 +00:00
],
[
2015-04-18 16:55:51 +01:00
'name' => 'app_locale',
'value' => 'en',
2015-01-16 10:36:35 +00:00
],
[
2015-04-18 16:55:51 +01:00
'name' => 'app_timezone',
'value' => 'Europe/London',
],
2015-03-03 10:26:53 +00:00
[
2015-04-18 16:55:51 +01:00
'name' => 'app_track',
'value' => '1',
2015-03-03 10:26:53 +00:00
],
[
2015-04-18 16:55:51 +01:00
'name' => 'app_incident_days',
'value' => '7',
2015-03-07 13:41:17 +00:00
],
[
2015-04-18 16:55:51 +01:00
'name' => 'app_analytics',
'value' => 'UA-58442674-3',
2015-03-03 10:26:53 +00:00
],
[
'name' => 'app_analytics_gs',
'value' => 'GSN-712462-P',
],
[
'name' => 'display_graphs',
'value' => '1',
],
2014-12-20 21:20:17 +00:00
];
2014-12-20 21:20:17 +00:00
Setting::truncate();
2014-12-20 21:20:17 +00:00
foreach ($defaultSettings as $setting) {
Setting::create($setting);
}
}
}