public function deleteComponentGroupAction(ComponentGroup $group)
    {
        execute(new RemoveComponentGroupCommand($group));

        return cachet_redirect('dashboard.components.groups')
            ->withSuccess(sprintf('%s %s', trans('dashboard.notifications.awesome'), trans('dashboard.components.delete.success')));
    }
public function deleteComponentGroupAction(ComponentGroup $group)
    {
        execute(new RemoveComponentGroupCommand($group));

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

@param \CachetHQ\Cachet\Models\ComponentGroup $group

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