public function deleteTemplateAction(IncidentTemplate $template)
    {
        $template->delete();

        return cachet_redirect('dashboard.templates')
            ->withSuccess(sprintf('%s %s', trans('dashboard.notifications.awesome'), trans('dashboard.incidents.templates.delete.success')));
    }
public function deleteTemplateAction(IncidentTemplate $template)
    {
        $template->delete();

        return cachet_redirect('dashboard.templates')
            ->withSuccess(sprintf('%s %s', trans('dashboard.notifications.awesome'), trans('dashboard.incidents.templates.delete.success')));
    }
public function deleteTemplateAction ( IncidentTemplate $ template ) { $ template -> delete ( ) ; return cachet_redirect ( 'dashboard.templates' ) -> withSuccess ( sprintf ( '%s %s' , trans ( 'dashboard.notifications.awesome' ) , trans ( 'dashboard.incidents.templates.delete.success' ) ) ) ; }
Deletes an incident template.

@param \CachetHQ\Cachet\Models\IncidentTemplate $template

@return \Illuminate\Http\RedirectResponse
Deletes an incident template .