public function deleteComponentAction(Component $component)
    {
        execute(new RemoveComponentCommand($component));

        return cachet_redirect('dashboard.components')
            ->withSuccess(sprintf('%s %s', trans('dashboard.notifications.awesome'), trans('dashboard.components.delete.success')));
    }
public function deleteComponentAction(Component $component)
    {
        execute(new RemoveComponentCommand($component));

        return cachet_redirect('dashboard.components')
            ->withSuccess(sprintf('%s %s', trans('dashboard.notifications.awesome'), trans('dashboard.components.delete.success')));
    }
public function deleteComponentAction ( Component $ component ) { execute ( new RemoveComponentCommand ( $ component ) ) ; return cachet_redirect ( 'dashboard.components' ) -> withSuccess ( sprintf ( '%s %s' , trans ( 'dashboard.notifications.awesome' ) , trans ( 'dashboard.components.delete.success' ) ) ) ; }
Deletes a given component.

@param \CachetHQ\Cachet\Models\Component $component

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