auth = $auth; } /** * Handle the remove metric command. * * @param \CachetHQ\Cachet\Bus\Commands\Metric\RemoveMetricCommand $command * * @return void */ public function handle(RemoveMetricCommand $command) { $metric = $command->metric; event(new MetricWasRemovedEvent($this->auth->user(), $metric)); $metric->delete(); } }