| @@ 71-80 (lines=10) @@ | ||
| 68 | * @param int $id |
|
| 69 | * @return \Illuminate\Http\Response |
|
| 70 | */ |
|
| 71 | public function show($id) |
|
| 72 | { |
|
| 73 | $tag = Tag::find($id); |
|
| 74 | if (!$tag) { |
|
| 75 | return $this->respondNotFound('Tag does not exsist'); |
|
| 76 | } |
|
| 77 | return $this->respond([ |
|
| 78 | 'data' => $this->tagTransformer->transform($tag) |
|
| 79 | ]); |
|
| 80 | } |
|
| 81 | /** |
|
| 82 | * Show the form for editing the specified resource. |
|
| 83 | * |
|
| @@ 62-71 (lines=10) @@ | ||
| 59 | * @param int $id |
|
| 60 | * @return \Illuminate\Http\Response |
|
| 61 | */ |
|
| 62 | public function show($id) |
|
| 63 | { |
|
| 64 | $task = Task::find($id); |
|
| 65 | if (!$task) { |
|
| 66 | return $this->respondNotFound('Task does not exsist'); |
|
| 67 | } |
|
| 68 | return $this->respond([ |
|
| 69 | 'data' => $this->taskTransformer->transform($task) |
|
| 70 | ]); |
|
| 71 | } |
|
| 72 | /** |
|
| 73 | * Show the form for editing the specified resource. |
|
| 74 | * |
|