2014-11-17 14:45:24 +00:00
|
|
|
<?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-11-17 14:45:24 +00:00
|
|
|
|
2014-12-20 21:20:17 +00:00
|
|
|
$defaultSettings = [
|
|
|
|
[
|
|
|
|
"name" => "site_name",
|
|
|
|
"value" => "Test",
|
|
|
|
],
|
|
|
|
];
|
2014-11-17 14:45:24 +00:00
|
|
|
|
2014-12-20 21:20:17 +00:00
|
|
|
Setting::truncate();
|
2014-11-17 14:45:24 +00:00
|
|
|
|
2014-12-20 21:20:17 +00:00
|
|
|
foreach ($defaultSettings as $setting) {
|
|
|
|
Setting::create($setting);
|
|
|
|
}
|
|
|
|
}
|
2014-11-17 14:45:24 +00:00
|
|
|
}
|