country + status added and other changes
This commit is contained in:
@@ -19,7 +19,8 @@ class CommentController extends Controller
|
||||
'comment' => $c->comment,
|
||||
'author' => auth()->user()->name,
|
||||
'created_at_human' => $c->created_at->diffForHumans(),
|
||||
]);
|
||||
])
|
||||
->values(); // ← add this
|
||||
|
||||
return response()->json(['comments' => $comments]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user