Change the table seeders a little
This commit is contained in:
@@ -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,
|
||||||
],
|
],
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
@@ -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",
|
||||||
],
|
],
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user