Cachet/app/database/seeds/SettingsTableSeeder.php

28 lines
467 B
PHP
Raw Normal View History

<?php
2014-12-20 21:20:17 +00:00
class SettingsTableSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
Eloquent::unguard();
2014-12-20 21:20:17 +00:00
$defaultSettings = [
[
"name" => "site_name",
"value" => "Test",
],
];
2014-12-20 21:20:17 +00:00
Setting::truncate();
2014-12-20 21:20:17 +00:00
foreach ($defaultSettings as $setting) {
Setting::create($setting);
}
}
}