Exemplo n.º 1
0
 /**
  * Run the database seeding.
  */
 public function run()
 {
     $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'], ['name' => 'app_analytics_gs', 'value' => 'GSN-712462-P'], ['name' => 'display_graphs', 'value' => '1']];
     Setting::truncate();
     foreach ($defaultSettings as $setting) {
         Setting::create($setting);
     }
 }
Exemplo n.º 2
0
 /**
  * Run the database seeding.
  *
  * @return void
  */
 public function run()
 {
     Model::unguard();
     $defaultSettings = [["name" => "app_name", "value" => "Test"], ["name" => "app_domain", "value" => "cachet.dev"], ["name" => "show_support", "value" => "1"]];
     Setting::truncate();
     foreach ($defaultSettings as $setting) {
         Setting::create($setting);
     }
 }
Exemplo n.º 3
0
 /**
  * Seed the settings table.
  *
  * @return void
  */
 protected function seedSettings()
 {
     $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_incident_days', 'value' => '7'], ['name' => 'app_analytics', 'value' => 'UA-58442674-3'], ['name' => 'app_analytics_gs', 'value' => 'GSN-712462-P'], ['name' => 'display_graphs', 'value' => '1'], ['name' => 'app_about', 'value' => 'This is the demo instance of [Cachet](https://cachethq.io?ref=demo). The open source status page system, for everyone. An [Alt Three](https://alt-three.com) product.']];
     Setting::truncate();
     foreach ($defaultSettings as $setting) {
         Setting::create($setting);
     }
 }