Browsers don't submit any value for checkboxes that are unchecked.
If you have optional checkboxes the request will validate using $data = $request->validate($rules)
but any checkbox field is missing from the returned $data
array.
This means you still have to check if the index exists in the $data
array as trying to access the field will throw an exception.
Set a default value for each optional checkbox fields before validation.