Incident API can now use incident templates with Twig templating

This commit is contained in:
James Brooks
2015-11-12 14:55:25 +00:00
parent 1483863dae
commit af176d7c7a
31 changed files with 363 additions and 22 deletions
+11
View File
@@ -74,3 +74,14 @@ $factory->define('CachetHQ\Cachet\Models\Subscriber', function ($faker) {
'verified_at' => Carbon::now(),
];
});
$factory->define('CachetHQ\Cachet\Models\IncidentTemplate', function ($faker) {
return [
'name' => 'Test Template',
'slug' => 'test-template',
'template' => <<<ETEMPLATE
Name: {{ name }},
Message: {{ message }}
ETEMPLATE
];
});