Ejemplo n.º 1
0
 /**
  * Deletes a given metric.
  *
  * @param \CachetHQ\Cachet\Models\Metric $metric
  *
  * @return \Illuminate\Http\RedirectResponse
  */
 public function deleteMetricAction(Metric $metric)
 {
     $metric->delete();
     return Redirect::back();
 }
Ejemplo n.º 2
0
 /**
  * Delete an existing metric.
  *
  * @param \CachetHQ\Cachet\Models\Metric $metric
  *
  * @return \Illuminate\Http\JsonResponse
  */
 public function deleteMetric(Metric $metric)
 {
     $metric->delete();
     return $this->noContent();
 }
Ejemplo n.º 3
0
 /**
  * Deletes a given metric.
  *
  * @param \CachetHQ\Cachet\Models\Metric $metric
  *
  * @return \Illuminate\Http\RedirectResponse
  */
 public function deleteMetricAction(Metric $metric)
 {
     $metric->delete();
     return Redirect::route('dashboard.metrics.index');
 }