public function deleteScheduleAction(Schedule $schedule)
    {
        execute(new DeleteScheduleCommand($schedule));

        return cachet_redirect('dashboard.schedule')
            ->withSuccess(sprintf('%s %s', trans('dashboard.notifications.awesome'), trans('dashboard.schedule.delete.success')));
    }
public function deleteScheduleAction(Schedule $schedule)
    {
        execute(new DeleteScheduleCommand($schedule));

        return cachet_redirect('dashboard.schedule')
            ->withSuccess(sprintf('%s %s', trans('dashboard.notifications.awesome'), trans('dashboard.schedule.delete.success')));
    }
public function deleteScheduleAction ( Schedule $ schedule ) { execute ( new DeleteScheduleCommand ( $ schedule ) ) ; return cachet_redirect ( 'dashboard.schedule' ) -> withSuccess ( sprintf ( '%s %s' , trans ( 'dashboard.notifications.awesome' ) , trans ( 'dashboard.schedule.delete.success' ) ) ) ; }
Deletes a given schedule.

@param \CachetHQ\Cachet\Models\Schedule $schedule

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