public function editIncidentUpdateAction(Incident $incident, IncidentUpdate $incidentUpdate)
    {
        try {
            $incidentUpdate = execute(new UpdateIncidentUpdateCommand(
                $incidentUpdate,
                Binput::get('status'),
                Binput::get('message'),
                $this->auth->user()
            ));
        } catch (ValidationException $e) {
            return cachet_redirect('dashboard.incidents.updates.edit', ['incident' => $incident->id, 'incident_update' => $incidentUpdate->id])
                ->withInput(Binput::all())
                ->withTitle(sprintf('%s %s', trans('dashboard.notifications.whoops'), trans('dashboard.incidents.updates.edit.failure')))
                ->withErrors($e->getMessageBag());
        }

        return cachet_redirect('dashboard.incidents.updates', ['incident' => $incident->id])
            ->withSuccess(sprintf('%s %s', trans('dashboard.notifications.awesome'), trans('dashboard.incidents.updates.edit.success')));
    }
public function editIncidentUpdateAction(Incident $incident, IncidentUpdate $incidentUpdate)
    {
        try {
            $incidentUpdate = execute(new UpdateIncidentUpdateCommand(
                $incidentUpdate,
                Binput::get('status'),
                Binput::get('message'),
                $this->auth->user()
            ));
        } catch (ValidationException $e) {
            return cachet_redirect('dashboard.incidents.updates.edit', ['incident' => $incident->id, 'incident_update' => $incidentUpdate->id])
                ->withInput(Binput::all())
                ->withTitle(sprintf('%s %s', trans('dashboard.notifications.whoops'), trans('dashboard.incidents.updates.edit.failure')))
                ->withErrors($e->getMessageBag());
        }

        return cachet_redirect('dashboard.incidents.updates', ['incident' => $incident->id])
            ->withSuccess(sprintf('%s %s', trans('dashboard.notifications.awesome'), trans('dashboard.incidents.updates.edit.success')));
    }
public function editIncidentUpdateAction ( Incident $ incident , IncidentUpdate $ incidentUpdate ) { try { $ incidentUpdate = execute ( new UpdateIncidentUpdateCommand ( $ incidentUpdate , Binput :: get ( 'status' ) , Binput :: get ( 'message' ) , $ this -> auth -> user ( ) ) ) ; } catch ( ValidationException $ e ) { return cachet_redirect ( 'dashboard.incidents.updates.edit' , [ 'incident' => $ incident -> id , 'incident_update' => $ incidentUpdate -> id ] ) -> withInput ( Binput :: all ( ) ) -> withTitle ( sprintf ( '%s %s' , trans ( 'dashboard.notifications.whoops' ) , trans ( 'dashboard.incidents.updates.edit.failure' ) ) ) -> withErrors ( $ e -> getMessageBag ( ) ) ; } return cachet_redirect ( 'dashboard.incidents.updates' , [ 'incident' => $ incident -> id ] ) -> withSuccess ( sprintf ( '%s %s' , trans ( 'dashboard.notifications.awesome' ) , trans ( 'dashboard.incidents.updates.edit.success' ) ) ) ; }
Edit an incident update.

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

@return \Illuminate\Http\RedirectResponse
Edit an incident update .