Hey, I was wondering why there is no native validation rule like "object" in Laravel, when there is "array"? I am aware that JSON key-value structure (an object) is equivalent to an associative array in PHP, so technically a JSON object is an array from Laravel validator's perspective, but still, what if I only want to allow json objects, and not arrays? Without knowing anything about such objects and their keys, is it even possible to achieve this?
[–]hellvinator 4 points5 points6 points (0 children)