Esempio n. 1
0
 public function execute(Command $command)
 {
     $handler = $this->commandTranslator->toCommandHandler($command);
     return $this->app->make($handler)->handle($command);
 }
 /**
  * @param Command $command
  * @return \Illuminate\Support\MessageBag
  */
 public function validationErrors(Command $command)
 {
     $validator = $this->commandTranslator->toValidator($command);
     return $this->app->make($validator)->errors($command);
 }