I know how to validate a query string with a single value in this way,
Validator::make($request->all(), [
'category' => 'sometimes|nullable',
'type' => [
'required',
Rule::in($this->propertyConfig['property_types']),
],
])->validate();
But what if I have a query string like this:
types=aa,bb,cc
I need to validate if aa, bb and cc are all in the array $types. How can I do that by using Laravel Validator?