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

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

        $metric->delete();
    }
public function handle(RemoveMetricCommand $command)
    {
        $metric = $command->metric;

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

        $metric->delete();
    }
public function handle ( RemoveMetricCommand $ command ) { $ metric = $ command -> metric ; event ( new MetricWasRemovedEvent ( $ this -> auth -> user ( ) , $ metric ) ) ; $ metric -> delete ( ) ; }
Handle the remove metric command.

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

@return void
Handle the remove metric command .