I need to validate the JSON body of a request, and it must be an array.
I know I can validate individual fields as an array like so:
$request->validate([
'name' => ['required', 'array'],
]);
but how can I validate that the whole request is an array instead of, say, an object?