public function show($id)
 {
     try {
         return $this->repository->find($id);
     } catch (\Exception $e) {
         return ['error' => true, 'message' => 'Registro não encontrado.'];
     }
 }
 public function show($id_project, $id_member)
 {
     try {
         return $this->repository->find($id_member)->user;
     } catch (ModelNotFoundException $e) {
         return ['error' => true, 'message' => 'Membro do projeto não existe'];
     }
 }
 public function find($project_id, $member_id)
 {
     $pm = ProjectMember::find($member_id);
     if (is_null($pm)) {
         return Errors::invalidId($member_id);
     }
     if (is_null(Project::find($project_id))) {
         return Errors::invalidId($project_id);
     }
     if ($pm->project_id != $project_id) {
         return Errors::basic("Falha. Projeto " . $project_id . " nao possui membro " . $member_id);
     }
     return $this->repository->find($member_id);
 }
 public function show($id, $idProjectMember)
 {
     return $this->repository->find($idProjectMember);
 }
 /**
  * Display the specified resource.
  *
  * @param  int  $id
  * @return Response
  */
 public function show($id, $memberId)
 {
     return $this->repository->find($memberId);
 }