Deprecated form-only helper kept for compatibility. Prefer ctx.req.validate(...).
Example
CodeBlockdart
final data = await ctx.req.validate({
'email': 'required|email',
'password': 'required|string|min:8',
'avatar': 'required',
});
final avatar = await ctx.req.input('avatar');
Behavior
Use the same validation rules whether the client sends JSON, URL-encoded form data, or multipart form data. form() still returns only text fields, while file uploads are available through file(), files(), allFiles(), and input().