/** * Delete an existing component. * * @param \CachetHQ\Cachet\Models\Component $component * * @return \Illuminate\Http\JsonResponse */ public function deleteComponent(Component $component) { $component->delete(); return $this->noContent(); }
/** * Deletes a given component. * * @param \CachetHQ\Cachet\Models\Component $component * * @return \Illuminate\Http\RedirectResponse */ public function deleteComponentAction(Component $component) { segment_track('Dashboard', ['event' => 'Deleted Component']); $component->delete(); return Redirect::back(); }
/** * Deletes a given component. * * @param \CachetHQ\Cachet\Models\Component $component * * @return \Illuminate\Http\RedirectResponse */ public function deleteComponentAction(Component $component) { $component->delete(); return Redirect::back(); }
/** * Deletes a given component. * * @param \CachetHQ\Cachet\Models\Component $component * * @return \Illuminate\Http\RedirectResponse */ public function deleteComponentAction(Component $component) { $component->delete(); return Redirect::route('dashboard.components.index'); }