Ejemplo n.º 1
0
 /**
  * Submits the new source for processing
  *
  * @param NewSourceRequest $request
  * @param ProjectRepository $projectRepository
  * @throws Exception
  */
 public function submitSource(NewSourceRequest $request, ProjectRepository $projectRepository)
 {
     try {
         $projectRepository->store($this->request->except(['email', 'receivers']));
     } catch (Exception $e) {
         throw $e;
     }
 }
Ejemplo n.º 2
0
 /**
  * Store the project to the database
  *
  * @return static
  * @throws Exception
  */
 protected function storeProject()
 {
     return $this->projectRepository->store(['uuid' => (string) Uuid::generate(4), 'video_id' => $this->source()->getId($this->getParam('path')), 'source_id' => $this->getParam('source_id'), 'path' => $this->getParam('path'), 'status_id' => Status::CREATE]);
 }