Cachet is now a Laravel 5 app
This commit is contained in:
59
database/seeds/SettingsTableSeeder.php
Normal file
59
database/seeds/SettingsTableSeeder.php
Normal file
@@ -0,0 +1,59 @@
|
||||
<?php
|
||||
|
||||
use CachetHQ\Cachet\Models\Setting;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Seeder;
|
||||
|
||||
class SettingsTableSeeder extends Seeder
|
||||
{
|
||||
/**
|
||||
* Run the database seeding.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function run()
|
||||
{
|
||||
Model::unguard();
|
||||
|
||||
$defaultSettings = [
|
||||
[
|
||||
"name" => "app_name",
|
||||
"value" => "Cachet Demo",
|
||||
],
|
||||
[
|
||||
"name" => "app_domain",
|
||||
"value" => "https://demo.cachethq.io",
|
||||
],
|
||||
[
|
||||
"name" => "show_support",
|
||||
"value" => "1",
|
||||
],
|
||||
[
|
||||
"name" => "app_locale",
|
||||
"value" => "en",
|
||||
],
|
||||
[
|
||||
"name" => "app_timezone",
|
||||
"value" => "Europe/London",
|
||||
],
|
||||
[
|
||||
"name" => "app_track",
|
||||
"value" => "1",
|
||||
],
|
||||
[
|
||||
"name" => "app_incident_days",
|
||||
"value" => "7",
|
||||
],
|
||||
[
|
||||
"name" => "app_analytics",
|
||||
"value" => "UA-58442674-3",
|
||||
],
|
||||
];
|
||||
|
||||
Setting::truncate();
|
||||
|
||||
foreach ($defaultSettings as $setting) {
|
||||
Setting::create($setting);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user