Complete the code to validate the 'email' field as required and in email format.
$request->validate(['email' => '[1]']);
The 'required|email' rule ensures the email field is present and formatted correctly.
Complete the code to validate that 'password' is required and has a minimum length of 8 characters.
$request->validate(['password' => '[1]']);
The 'required|min:8' rule ensures the password is present and at least 8 characters long.
Fix the error in the validation rule to require 'age' to be numeric and at least 18.
$request->validate(['age' => '[1]']);
'required|integer|min:18' ensures age is present, an integer, and at least 18.
Fill both blanks to validate 'username' as required and unique in 'users' table, and 'email' as required and email format.
$request->validate(['username' => '[1]', 'email' => '[2]']);
'username' must be unique and required; 'email' must be required and valid email.
Fill all three blanks to validate 'title' as required string, 'content' as required string with minimum 10 characters, and 'published' as boolean.
$request->validate(['title' => '[1]', 'content' => '[2]', 'published' => '[3]']);
'title' must be required string, 'content' required string with min length 10, 'published' must be boolean.