public function testMultiKeyExists() { // One Level deep $this->assertTrue(Arr::multiKeyExists($this->array, 'thekey')); // Two Levels deep $this->assertTrue(Arr::multiKeyExists($this->array, 'innerKey')); }
/** * Retrieve a validation method for a specified property * @param $property string the Property to get message for * @return string The message */ public function validationMessageFor($property) { return Arr::multiKeyExists($this->errors, $property) ? $this->formatValidationMessage($property) : ""; }