/** * Display the specified resource. * * @param int $id * @return \Illuminate\Http\Response */ public function show($id) { $id = explode('x', $id); $r = Project::find($id[0]); $r['words'] = ProjectWord::where('p_id', $id[0])->wher('v_id', $id[1])->orderBy('pw_content', 'asc')->get(); $r['thinks'] = $this->getThink($id); $r['plans'] = $this->getPlan($id); $r['bug'] = $this->getBug($id); $r['checks'] = ProjectCheck::pro($id)->get(); return response()->json($r); }
/** * Display the specified resource. * * @param int $id * @return \Illuminate\Http\Response */ public function show($id) { $r = ProjectCheck::find($id); return response()->json($r); }