public function projectsMember(Request $request)
 {
     try {
         return $this->repository->findMember(\Authorizer::getResourceOwnerId(), $request->query->get('limit'));
     } catch (NoActiveAccessTokenException $e) {
         return $this->erroMsgm('Usuário não está logado.');
     } catch (\Exception $e) {
         return $this->erroMsgm('Ocorreu um erro ao listar os projetos. Erro: ' . $e->getMessage());
     }
 }
 public function indexAsMember(Request $request)
 {
     #return $this->repository->hidden(['owner_id', 'client_id'])->with(['owner', 'client'])->all();
     /*return $this->repository->
       with(['client', 'tasks', 'notes', 'members'])->
       all()->members()->where(['user_id' => Authorizer::getResourceOwnerId()]);*/
     #return $this->service->index();
     $rtrn = $this->repository->findMember(Authorizer::getResourceOwnerId(), $request->query->get('limit'));
     //dd($rtrn);
     return $rtrn;
 }
 public function allMember($limit)
 {
     $user_id = \Authorizer::getResourceOwnerId();
     $ids = $this->projectMemberRepository->projectsOfWhichIsMember($user_id);
     return $this->repository->findMember($ids, $limit);
 }