public function isMember($project_id, $member_id) { if (count($this->memberRepository->findWhere(['project_id' => $project_id, 'member_id' => $member_id])) > 0) { return true; } return false; }
/** * Update the specified resource in storage. * * @param Request $request * @param int $id * @param $member_id * @return Response */ public function update(Request $request, $id, $member_id) { return $this->repository->update($request->all(), $member_id); }