public function handle(UpdateMetricCommand $command)
    {
        $metric = $command->metric;

        $metric->update($this->filter($command));

        event(new MetricWasUpdatedEvent($this->auth->user(), $metric));

        return $metric;
    }
public function handle(UpdateMetricCommand $command)
    {
        $metric = $command->metric;

        $metric->update($this->filter($command));

        event(new MetricWasUpdatedEvent($this->auth->user(), $metric));

        return $metric;
    }
public function handle ( UpdateMetricCommand $ command ) { $ metric = $ command -> metric ; $ metric -> update ( $ this -> filter ( $ command ) ) ; event ( new MetricWasUpdatedEvent ( $ this -> auth -> user ( ) , $ metric ) ) ; return $ metric ; }
Handle the update metric command.

@param \CachetHQ\Cachet\Bus\Commands\Metric\UpdateMetricCommand $command

@return \CachetHQ\Cachet\Models\Metric
Handle the update metric command .