app/Http/Controllers/TagController.php 1 location
|
@@ 75-85 (lines=11) @@
|
| 72 |
|
* @param int $id |
| 73 |
|
* @return \Illuminate\Http\Response |
| 74 |
|
*/ |
| 75 |
|
public function show($id) |
| 76 |
|
{ |
| 77 |
|
$tag = Tag::find($id); |
| 78 |
|
|
| 79 |
|
if (!$tag) |
| 80 |
|
{ |
| 81 |
|
return $this->respondNotFound('Tag does not exist'); |
| 82 |
|
} |
| 83 |
|
|
| 84 |
|
return $this->respond($this->tagTranformer->transform($tag))->setStatusCode(200); |
| 85 |
|
} |
| 86 |
|
|
| 87 |
|
/** |
| 88 |
|
* Show the form for editing the specified resource. |
app/Http/Controllers/TaskController.php 1 location
|
@@ 71-81 (lines=11) @@
|
| 68 |
|
* @param int $id |
| 69 |
|
* @return \Illuminate\Http\Response |
| 70 |
|
*/ |
| 71 |
|
public function show($id) |
| 72 |
|
{ |
| 73 |
|
$task = Task::find($id); |
| 74 |
|
|
| 75 |
|
if (!$task) |
| 76 |
|
{ |
| 77 |
|
return $this->respondNotFound('Task does not exist'); |
| 78 |
|
} |
| 79 |
|
|
| 80 |
|
return $this->respond($this->taskTransformer->transform($task))->setStatusCode(200); |
| 81 |
|
} |
| 82 |
|
|
| 83 |
|
/** |
| 84 |
|
* Show the form for editing the specified resource. |