Larave Validator verifies arrays and elements Author: Chuwen Time: 2021-08-30 Classification: Laravel , PHP ###Example ```php $rules = [ 'country_code_list []'=>['required_without: courier_code ',' array '],//This field must be an array 'country_code_list []. *'=>['string ',' distinct ',' size: 2 '],//The elements in the array must be strings, unique, and 2 in length ]; $validated = Validator::make($request->all(), $rules); //Print validation error messages dd($validated->errors()); ``` ###Simulate request data >POST request BODY ```json { "country_code_list[]": [ "CN", "JP" ] } ``` label: Laravel , Validation , Validator