public function destroy($id)
 {
     try {
         $this->repository->find($id);
     } catch (ModelNotFoundException $e) {
         return ['error' => true, 'message' => 'Projeto não encontrado.'];
     }
     return $this->repository->delete($id);
 }
 public function getFileName($id)
 {
     $projectFile = $this->repository->find($id);
     return $projectFile->getFileName();
 }
 /**
  * Display the specified resource.
  *
  * @param  int  $id
  * @return Response
  */
 public function show($projectId, $fileId)
 {
     return $this->service->find($fileId);
 }
 /**
  * Display the specified resource.
  *
  * @param  int  $id
  * @return Response
  */
 public function show($id)
 {
     return $this->service->find($id);
 }
 public function find($id)
 {
     return $this->repository->find($id);
 }