latest() ->paginate(15); return view('admin.comments.index', compact('comments')); } public function show(Comment $comment) { return view('admin.comments.show', compact('comment')); } public function update(CommentUpdateRequest $request, Comment $comment) { $comment->update($request->validated()); return redirect() ->route('admin.comments.index') ->with('success', 'نظر با موفقیت به‌روزرسانی شد.'); } public function destroy(Comment $comment) { $comment->delete(); return redirect() ->route('admin.comments.index') ->with('success', 'نظر با موفقیت حذف شد.'); } }