forumService->createForumReply($request->validated()); return back()->with('success', 'Forum reply created successfully'); } /** * Update the specified resource in storage. */ public function update(UpdateCourseForumReplyRequest $request, string $id) { $this->forumService->updateForumReply($id, $request->validated()); return back()->with('success', 'Forum reply updated successfully'); } /** * Remove the specified resource from storage. */ public function destroy(CourseForumReply $courseForumReply) { $this->forumService->deleteForumReply($courseForumReply->id); return back()->with('success', 'Forum reply deleted successfully'); } }