public function deleteIncidentAction(Incident $incident)
    {
        execute(new RemoveIncidentCommand($incident));

        return cachet_redirect('dashboard.incidents')
            ->withSuccess(sprintf('%s %s', trans('dashboard.notifications.awesome'), trans('dashboard.incidents.delete.success')));
    }
public function deleteIncidentAction(Incident $incident)
    {
        execute(new RemoveIncidentCommand($incident));

        return cachet_redirect('dashboard.incidents')
            ->withSuccess(sprintf('%s %s', trans('dashboard.notifications.awesome'), trans('dashboard.incidents.delete.success')));
    }
public function deleteIncidentAction ( Incident $ incident ) { execute ( new RemoveIncidentCommand ( $ incident ) ) ; return cachet_redirect ( 'dashboard.incidents' ) -> withSuccess ( sprintf ( '%s %s' , trans ( 'dashboard.notifications.awesome' ) , trans ( 'dashboard.incidents.delete.success' ) ) ) ; }
Deletes a given incident.

@param \CachetHQ\Cachet\Models\Incident $incident

@return \Illuminate\Http\RedirectResponse
Deletes a given incident .