public function handle(UpdateScheduleCommand $command)
    {
        $schedule = $command->schedule;

        $schedule->update($this->filter($command));

        event(new ScheduleWasUpdatedEvent($this->auth->user(), $schedule));

        return $schedule;
    }
public function handle(UpdateScheduleCommand $command)
    {
        $schedule = $command->schedule;

        $schedule->update($this->filter($command));

        event(new ScheduleWasUpdatedEvent($this->auth->user(), $schedule));

        return $schedule;
    }
public function handle ( UpdateScheduleCommand $ command ) { $ schedule = $ command -> schedule ; $ schedule -> update ( $ this -> filter ( $ command ) ) ; event ( new ScheduleWasUpdatedEvent ( $ this -> auth -> user ( ) , $ schedule ) ) ; return $ schedule ; }
Handle the update schedule command.

@param \CachetHQ\Cachet\Bus\Commands\Schedule\UpdateScheduleCommand $command

@return \CachetHQ\Cachet\Models\Schedule
Handle the update schedule command .