Skip to content

Commit c6613be

Browse files
committed
app settings seed
1 parent b8157e4 commit c6613be

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

database/seeders/DatabaseSeeder.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
use Cachet\Models\Incident;
1313
use Cachet\Models\Metric;
1414
use Cachet\Models\Schedule;
15+
use Cachet\Settings\AppSettings;
1516
use Cachet\Settings\CustomizationSettings;
1617
use Illuminate\Database\Seeder;
1718
use Illuminate\Support\Arr;
@@ -142,6 +143,17 @@ public function run(): void
142143
// 'engine' => IncidentTemplateEngineEnum::twig,
143144
// ]);
144145

146+
$appSettings = app(AppSettings::class);
147+
$appSettings->about = <<<'ABOUT'
148+
Cachet is a **beautiful** and **powerful** open-source status page system.
149+
150+
To access the [dashboard](/dashboard), use the following credentials:
151+
152+
- `test123`
153+
ABOUT;
154+
$appSettings->name = 'Cachet v3.x Demo';
155+
$appSettings->save();
156+
145157
$customizationSettings = app(CustomizationSettings::class);
146158
$customizationSettings->header = <<<'HTML'
147159
<script src="https://cdn.usefathom.com/script.js" data-site="NQKCLYJJ" defer></script>

0 commit comments

Comments
 (0)