Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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)

AltStyle によって変換されたページ (->オリジナル) /