validate([ 'title' => 'required|string|max:255', 'message' => 'required|string', 'author_name' => 'nullable|string|max:255', ]); $news->comments()->create($validated); return back()->with('success', 'Comment added successfully!'); } }