public function members($id) { //return $this->repository->findWhere(['project_id' => $id, 'id' => $noteId]); //return $this->repository->find($id); //return $this->repository->with(['members'])->find($id); return $this->repository->with(['user'])->findWhere(['project_id' => $id]); }
/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index($id) { return $this->repository->with(['project'])->findWhere(['project_id' => $id]); }
/** * Display the specified resource. * * @param int $id * @return Response */ public function show($id) { return $this->repository->with(['project', 'member'])->find($id); }