The boolean rule ex:
$validator = Validator::make($data, [
"is_public" => ["required", "boolean"],
//...
]);
$validator->validated(); // is_public can be type int, 0 or 1.
accepts JSON {"is_public": 0}
The validated array can have ints, and possibly other types I haven't discovered yet.
Is there a nice way to validate + ensure the is_public field is type boolean?