$validated = $request->validate([ 'title' => 'required|unique:posts|max:255', 'body' => 'required', ]);