original_string: public function handle(CreateScheduleCommand $command)
      {
          try {
              $schedule = Schedule::create($this->filter($command));
  
              event(new ScheduleWasCreatedEvent($this->auth->user(), $schedule));
          } catch (InvalidArgumentException $e) {
              throw new ValidationException(new MessageBag([$e->getMessage()]));
          }
  
          return $schedule;
      }
code: public function handle(CreateScheduleCommand $command)
      {
          try {
              $schedule = Schedule::create($this->filter($command));
  
              event(new ScheduleWasCreatedEvent($this->auth->user(), $schedule));
          } catch (InvalidArgumentException $e) {
              throw new ValidationException(new MessageBag([$e->getMessage()]));
          }
  
          return $schedule;
      }
code_tokens: public function handle ( CreateScheduleCommand $ command ) { try { $ schedule = Schedule :: create ( $ this -> filter ( $ command ) ) ; event ( new ScheduleWasCreatedEvent ( $ this -> auth -> user ( ) , $ schedule ) ) ; } catch ( InvalidArgumentException $ e ) { throw new ValidationException ( new MessageBag ( [ $ e -> getMessage ( ) ] ) ) ; } return $ schedule ; }
docstring: Handle the create schedule command.
  
  @param \CachetHQ\Cachet\Bus\Commands\Schedule\CreateScheduleCommand $command
  
  @return \CachetHQ\Cachet\Models\Schedule
docstring_tokens: Handle the create schedule command .