Update NewIncidentNotification.php

Fix a incident name issue
This commit is contained in:
Antonio
2019-01-18 03:00:51 +02:00
committed by GitHub
parent 21daa6d2d2
commit d52c961adf

View File

@@ -128,7 +128,7 @@ class NewIncidentNotification extends Notification
->$status()
->content($content)
->attachment(function ($attachment) use ($notifiable) {
$attachment->title(trans('notifications.incident.new.slack.title', [$this->incident->name]))
$attachment->title(trans('notifications.incident.new.slack.title', ['name' => $this->incident->name]))
->timestamp($this->incident->getWrappedObject()->occurred_at)
->fields(array_filter([
'ID' => "#{$this->incident->id}",