| @@ 149-158 (lines=10) @@ | ||
| 146 | * @param \Illuminate\Http\Request $request |
|
| 147 | * @return \Illuminate\Http\Response |
|
| 148 | */ |
|
| 149 | public function show($id) |
|
| 150 | { |
|
| 151 | $master_prestasi = $this->master_prestasi->findOrFail($id); |
|
| 152 | ||
| 153 | $response['user'] = $master_prestasi->user; |
|
| 154 | $response['master_prestasi'] = $master_prestasi; |
|
| 155 | $response['status'] = true; |
|
| 156 | ||
| 157 | return response()->json($response); |
|
| 158 | } |
|
| 159 | ||
| 160 | /** |
|
| 161 | * Show the form for editing the specified resource. |
|
| @@ 146-155 (lines=10) @@ | ||
| 143 | * @param \Illuminate\Http\Request $request |
|
| 144 | * @return \Illuminate\Http\Response |
|
| 145 | */ |
|
| 146 | public function show($id) |
|
| 147 | { |
|
| 148 | $prestasi = $this->prestasi->findOrFail($id); |
|
| 149 | ||
| 150 | $response['user'] = $prestasi->user; |
|
| 151 | $response['prestasi'] = $prestasi; |
|
| 152 | $response['status'] = true; |
|
| 153 | ||
| 154 | return response()->json($response); |
|
| 155 | } |
|
| 156 | ||
| 157 | /** |
|
| 158 | * Show the form for editing the specified resource. |
|