changed username to slug
This commit is contained in:
@@ -32,7 +32,7 @@ class GameCommentController extends Controller
|
||||
return response()->json([
|
||||
'id' => $comment->id,
|
||||
'body' => $comment->body,
|
||||
'user' => ['name' => $comment->user->name, 'username' => $comment->user->username],
|
||||
'user' => ['name' => $comment->user->name, 'slug' => $comment->user->slug],
|
||||
'user_id' => $comment->user_id,
|
||||
'created_at' => $comment->created_at->diffForHumans(),
|
||||
'replies_count' => 0,
|
||||
|
||||
Reference in New Issue
Block a user