39 lines
751 B
PHP
39 lines
751 B
PHP
<?php
|
|
|
|
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);
|
|
}
|
|
}
|
|
}
|