2014-11-17 14:45:24 +00:00
|
|
|
<?php
|
|
|
|
|
2015-04-19 08:52:39 +01:00
|
|
|
/*
|
|
|
|
* This file is part of Cachet.
|
|
|
|
*
|
2015-07-06 17:37:01 +01:00
|
|
|
* (c) Alt Three Services Limited
|
2015-04-19 08:52:39 +01:00
|
|
|
*
|
|
|
|
* For the full copyright and license information, please view the LICENSE
|
|
|
|
* file that was distributed with this source code.
|
|
|
|
*/
|
|
|
|
|
2015-01-02 00:18:19 +00:00
|
|
|
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-01-01 01:34:53 +00:00
|
|
|
[
|
2015-04-18 16:55:51 +01:00
|
|
|
'name' => 'app_domain',
|
|
|
|
'value' => 'https://demo.cachethq.io',
|
2015-01-01 01:34:53 +00:00
|
|
|
],
|
|
|
|
[
|
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-01-01 01:34:53 +00:00
|
|
|
],
|
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-03-07 13:33:00 +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
|
|
|
],
|
2015-05-22 14:07:09 +01:00
|
|
|
[
|
|
|
|
'name' => 'app_analytics_gs',
|
|
|
|
'value' => 'GSN-712462-P',
|
|
|
|
],
|
2015-05-22 15:32:55 +01:00
|
|
|
[
|
|
|
|
'name' => 'display_graphs',
|
|
|
|
'value' => '1',
|
|
|
|
],
|
2014-12-20 21:20:17 +00:00
|
|
|
];
|
2014-11-17 14:45:24 +00:00
|
|
|
|
2014-12-20 21:20:17 +00:00
|
|
|
Setting::truncate();
|
2014-11-17 14:45:24 +00:00
|
|
|
|
2014-12-20 21:20:17 +00:00
|
|
|
foreach ($defaultSettings as $setting) {
|
|
|
|
Setting::create($setting);
|
|
|
|
}
|
|
|
|
}
|
2014-11-17 14:45:24 +00:00
|
|
|
}
|