mirror of
https://github.com/CachetHQ/Cachet.git
synced 2025-02-23 11:16:05 +01:00
40 lines
787 B
PHP
40 lines
787 B
PHP
<?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" => "Test",
|
|
],
|
|
[
|
|
"name" => "app_domain",
|
|
"value" => "cachet.dev"
|
|
],
|
|
[
|
|
"name" => "show_support",
|
|
"value" => "1"
|
|
],
|
|
];
|
|
|
|
Setting::truncate();
|
|
|
|
foreach ($defaultSettings as $setting) {
|
|
Setting::create($setting);
|
|
}
|
|
}
|
|
}
|