original_string: public function handle(CreateIncidentUpdateCommand $command)
      {
          $data = [
              'incident_id' => $command->incident->id,
              'status'      => $command->status,
              'message'     => $command->message,
              'user_id'     => $command->user->id,
          ];
  
          // Create the incident update.
          $update = IncidentUpdate::create($data);
  
          // Update the original incident with the new status.
          execute(new UpdateIncidentCommand(
              $command->incident,
              null,
              $command->status,
              null,
              null,
              null,
              null,
              null,
              null,
              null,
              null,
              []
          ));
  
          event(new IncidentUpdateWasReportedEvent($this->auth->user(), $update));
  
          return $update;
      }
code: public function handle(CreateIncidentUpdateCommand $command)
      {
          $data = [
              'incident_id' => $command->incident->id,
              'status'      => $command->status,
              'message'     => $command->message,
              'user_id'     => $command->user->id,
          ];
  
          // Create the incident update.
          $update = IncidentUpdate::create($data);
  
          // Update the original incident with the new status.
          execute(new UpdateIncidentCommand(
              $command->incident,
              null,
              $command->status,
              null,
              null,
              null,
              null,
              null,
              null,
              null,
              null,
              []
          ));
  
          event(new IncidentUpdateWasReportedEvent($this->auth->user(), $update));
  
          return $update;
      }
code_tokens: public function handle ( CreateIncidentUpdateCommand $ command ) { $ data = [ 'incident_id' => $ command -> incident -> id , 'status' => $ command -> status , 'message' => $ command -> message , 'user_id' => $ command -> user -> id , ] ; // Create the incident update. $ update = IncidentUpdate :: create ( $ data ) ; // Update the original incident with the new status. execute ( new UpdateIncidentCommand ( $ command -> incident , null , $ command -> status , null , null , null , null , null , null , null , null , [ ] ) ) ; event ( new IncidentUpdateWasReportedEvent ( $ this -> auth -> user ( ) , $ update ) ) ; return $ update ; }
docstring: Handle the report incident command.
  
  @param \CachetHQ\Cachet\Bus\Commands\IncidentUpdate\CreateIncidentUpdateCommand $command
  
  @return \CachetHQ\Cachet\Models\IncidentUpdate
docstring_tokens: Handle the report incident command .