/**
  * [Handle the command]
  * @param  [type] $command [description]
  * @return [type]          [description]
  */
 public function handle($command)
 {
     $upload1 = Upload::publish($command->user_id, $command->global, $command->file);
     $this->uploadRepository->save($upload1);
     $this->dispatchEventsFor($upload1);
     return $upload1;
 }
Ejemplo n.º 2
0
 public function save(Upload $upload)
 {
     return $upload->save();
 }