public function update(Incident $incident, IncidentUpdate $update)
    {
        try {
            $update = execute(new UpdateIncidentUpdateCommand(
                $update,
                Binput::get('status'),
                Binput::get('message'),
                Auth::user()
            ));
        } catch (QueryException $e) {
            throw new BadRequestHttpException();
        }

        return $this->item($update);
    }
public function update(Incident $incident, IncidentUpdate $update)
    {
        try {
            $update = execute(new UpdateIncidentUpdateCommand(
                $update,
                Binput::get('status'),
                Binput::get('message'),
                Auth::user()
            ));
        } catch (QueryException $e) {
            throw new BadRequestHttpException();
        }

        return $this->item($update);
    }
public function update ( Incident $ incident , IncidentUpdate $ update ) { try { $ update = execute ( new UpdateIncidentUpdateCommand ( $ update , Binput :: get ( 'status' ) , Binput :: get ( 'message' ) , Auth :: user ( ) ) ) ; } catch ( QueryException $ e ) { throw new BadRequestHttpException ( ) ; } return $ this -> item ( $ update ) ; }
Update an incident update.

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

@return \Illuminate\Http\JsonResponse
Update an incident update .