public function update(Request $request, $id, $fileId)
 {
     $data = $request->all();
     $data['project_id'] = $id;
     if ($this->projectService->checkProjectPermissions($id) === false) {
         return ['error' => 'Access Forbidden'];
     }
     return $this->service->update($data, $fileId);
 }
 /**
  * Update the specified resource in storage.
  *
  * @param  \Illuminate\Http\Request $request
  * @param  int $id
  * @return \Illuminate\Http\Response
  */
 public function update(Request $request, $projectId, $id)
 {
     try {
         return $this->service->update($request->all(), $id);
     } catch (ModelNotFoundException $e) {
         return $this->erroMsgm('Projeto não encontrado.');
     } catch (NoActiveAccessTokenException $e) {
         return $this->erroMsgm('Usuário não está logado.');
     } catch (\Exception $e) {
         return $this->erroMsgm('Ocorreu um erro ao atualizar o projeto.');
     }
 }
 /**
  * Update the specified resource in storage.
  *
  * @param  Request $request
  * @param  int $id
  * @return Response
  */
 public function update(Request $request, $id)
 {
     if ($this->service->checkProjectPermissions($id) == false) {
         return ['error' => 'Access Forbidden'];
     }
     return $this->service->update($request->all(), $id);
 }
 /**
  * @param Request $request
  * @param int $id
  * @return Reponse
  */
 public function update(Request $request, $id, $idFile)
 {
     $data = $request->all();
     $data['project_id'] = $id;
     return $this->service->update($data, $idFile);
     /*
     if($this->service->checkProjectOwner($id) == false){
         return ['error' => 'Access Forbidden'];
     }
     return $this->service->update($request->all(), $id);
     */
 }
 /**
  * @param Request $request
  * @param int $id
  * @return Reponse
  */
 public function update(Request $request, $id, $idFile)
 {
     $data = $request->all();
     $data['project_id'] = $id;
     return $this->service->update($data, $idFile);
 }
 public function update(Request $request, $id)
 {
     return $this->service->update($request->all(), $id);
 }
 /**
  * Update the specified resource in storage.
  *
  * @param  Request $request
  * @param int $projectId
  * @param int $fileId
  * @return Response
  * @internal param int $id
  */
 public function update(Request $request, $projectId, $fileId)
 {
     return $this->service->update($projectId, $fileId, $request->file('file'), $request->all());
 }