예제 #1
0
 /**
  * Delete an existing component.
  *
  * @param \CachetHQ\Cachet\Models\Component $component
  *
  * @return \Illuminate\Http\JsonResponse
  */
 public function deleteComponent(Component $component)
 {
     $component->delete();
     return $this->noContent();
 }
예제 #2
0
 /**
  * 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();
 }
예제 #4
0
 /**
  * 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');
 }