public function deleteMetricAction(Metric $metric)
    {
        execute(new RemoveMetricCommand($metric));

        return cachet_redirect('dashboard.metrics')
            ->withSuccess(sprintf('%s %s', trans('dashboard.notifications.awesome'), trans('dashboard.metrics.delete.success')));
    }
public function deleteMetricAction(Metric $metric)
    {
        execute(new RemoveMetricCommand($metric));

        return cachet_redirect('dashboard.metrics')
            ->withSuccess(sprintf('%s %s', trans('dashboard.notifications.awesome'), trans('dashboard.metrics.delete.success')));
    }
public function deleteMetricAction ( Metric $ metric ) { execute ( new RemoveMetricCommand ( $ metric ) ) ; return cachet_redirect ( 'dashboard.metrics' ) -> withSuccess ( sprintf ( '%s %s' , trans ( 'dashboard.notifications.awesome' ) , trans ( 'dashboard.metrics.delete.success' ) ) ) ; }
Deletes a given metric.

@param \CachetHQ\Cachet\Models\Metric $metric

@return \Illuminate\Http\RedirectResponse
Deletes a given metric .