Skip to content

Commit f863737

Browse files
committed
update
1 parent 27df693 commit f863737

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/Http/Controllers/PostController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public function index()
2727
'updated_at' => $post->updated_at,
2828
]);
2929
}
30-
30+
3131
return response()->json($result);
3232
}
3333

@@ -95,7 +95,7 @@ public function update(Request $request, $id)
9595
'description' => $request->description
9696
]);;
9797

98-
return response()->json($post);
98+
return response()->json($post->load('user'));
9999
}
100100

101101
/**

0 commit comments

Comments
 (0)