Skip to content

Commit c2000a9

Browse files
committed
Demo should seed non-grouped component
1 parent 127a19e commit c2000a9

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

database/seeders/DatabaseSeeder.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
use Cachet\Enums\MetricViewEnum;
1010
use Cachet\Enums\ResourceVisibilityEnum;
1111
use Cachet\Enums\ScheduleStatusEnum;
12+
use Cachet\Models\Component;
1213
use Cachet\Models\ComponentGroup;
1314
use Cachet\Models\Incident;
1415
use Cachet\Models\Metric;
@@ -78,6 +79,13 @@ public function run(): void
7879
],
7980
]);
8081

82+
Component::create([
83+
'name' => 'Cachet',
84+
'description' => 'The open-source status page system.',
85+
'link' => 'https://cachethq.io',
86+
'status' => ComponentStatusEnum::operational,
87+
]);
88+
8189
$metric = Metric::create([
8290
'name' => 'Checkmango Requests',
8391
'suffix' => 'req/s',

0 commit comments

Comments
 (0)