Handle subscribers

This commit is contained in:
Joseph Cohen
2015-05-24 16:33:03 -05:00
parent 254c578ca2
commit 55dcf3a277
48 changed files with 1214 additions and 35 deletions

View File

@@ -11,6 +11,7 @@
namespace CachetHQ\Cachet\Http\Controllers\Admin;
use CachetHQ\Cachet\Events\IncidentHasReportedEvent;
use CachetHQ\Cachet\Facades\Setting;
use CachetHQ\Cachet\Http\Controllers\AbstractController;
use CachetHQ\Cachet\Models\Component;
@@ -159,6 +160,10 @@ class IncidentController extends AbstractController
trans('dashboard.incidents.add.success')
);
if (array_get($incidentData, 'notify')) {
event(new IncidentHasReportedEvent($incident));
}
return Redirect::back()->with('success', $successMsg);
}