/**
  * @param $id_project
  * @param $id_file
  * @return mixed
  */
 public function show($id_project, $id_file)
 {
     $rtrn = $this->repository->find($id_file);
     #$rtrn = $this->repository->all();
     #dd($rtrn);
     return $rtrn;
 }
 /**
  * Display the specified resource.
  *
  * @param  int $id
  * @return \Illuminate\Http\Response
  */
 public function show($id)
 {
     if ($this->service->checkProjectPermissions($id) == false) {
         return $this->erroMsgm("O usuário não tem acesso a esse projeto");
     }
     return $this->repository->find($id);
 }
 public function show($id, $fileId)
 {
     if ($this->projectService->checkProjectPermissions($id) === false) {
         return ['error' => 'Access Forbidden'];
     }
     return $this->repository->find($fileId);
 }
 public function find($project_id, $file_id)
 {
     $projectFile = ProjectFile::find($file_id);
     if (is_null($projectFile)) {
         return Errors::invalidId($file_id);
     }
     if (is_null(Project::find($project_id))) {
         return Errors::invalidId($project_id);
     }
     if ($projectFile->project_id != $project_id) {
         return Errors::basic("Falha. Projeto " . $project_id . " nao possui o arquivo " . $file_id);
     }
     return $this->repository->find($file_id);
 }
 /**
  * Display the specified resource.
  *
  * @param  int $id
  * @return \Illuminate\Http\Response
  */
 public function show($projectId, $id)
 {
     return $this->repository->find($id);
 }