Laravel - Request and Response
You want to handle a form submission in Laravel and validate that the 'email' field is present and properly formatted before saving. Which approach best uses request handling to achieve this?
validate() method on the Request object to check input rules like required and email format.$request->validate(['email' => 'required|email']); ensures the email is present and correctly formatted before saving.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions