validate([ 'author_name' => 'required|string', 'body' => 'required|string', ]); $comment = $post->comments()->create($validated); CommentPosted::dispatch($comment); return back()->with('success', 'Успешно!'); } }