Change the table seeders a little

This commit is contained in:
James Brooks
2015-01-16 10:36:35 +00:00
parent 9efb1f39da
commit c38f08cc22
3 changed files with 24 additions and 7 deletions
+10 -4
View File
@@ -21,15 +21,21 @@ class ComponentTableSeeder extends Seeder
"description" => "Used by third-parties to connect to us", "description" => "Used by third-parties to connect to us",
"status" => 1, "status" => 1,
"user_id" => 1, "user_id" => 1,
"order" => 0,
"group_id" => 0,
], [ ], [
"name" => "Payments", "name" => "Payments",
"description" => "Backed by Stripe", "description" => "Backed by Stripe",
"status" => 1, "status" => 1,
"user_id" => 1 "user_id" => 1,
"order" => 0,
"group_id" => 0,
], [ ], [
"name" => "Website", "name" => "Website",
"status" => 1, "status" => 1,
"user_id" => 1 "user_id" => 1,
"order" => 0,
"group_id" => 0,
], ],
]; ];
+11 -3
View File
@@ -18,15 +18,23 @@ class SettingsTableSeeder extends Seeder
$defaultSettings = [ $defaultSettings = [
[ [
"name" => "app_name", "name" => "app_name",
"value" => "Test", "value" => "Cachet Demo",
], ],
[ [
"name" => "app_domain", "name" => "app_domain",
"value" => "cachet.dev" "value" => "https://status.cachethq.io",
], ],
[ [
"name" => "show_support", "name" => "show_support",
"value" => "1" "value" => "1",
],
[
"name" => "app_locale",
"value" => "en",
],
[
"name" => "app_timezone",
"value" => "Europe/London",
], ],
]; ];
+3
View File
@@ -20,9 +20,12 @@ class UsersTableSeeder extends Seeder
"username" => "test", "username" => "test",
"password" => "test123", "password" => "test123",
"email" => "test@test.com", "email" => "test@test.com",
"level" => 1,
] ]
]; ];
User::truncate();
foreach ($users as $user) { foreach ($users as $user) {
User::create($user); User::create($user);
} }