/**
  * Display the specified resource.
  *
  * @param  int  $id
  * @return Response
  */
 public function show($id, $membersId)
 {
     return $this->repository->findWhere(['project_id' => $id, 'id' => $membersId]);
 }
 public function removeMember($id)
 {
     $this->repository->delete($id);
 }
 private function checkProjectMember($projectId)
 {
     $userId = \Authorizer::getResourceOwnerId();
     return $this->repository->hasMember($projectId, $userId);
 }